在键盘事件中用这的方法!
public String getText()
Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException.
Returns:
the text
public String getText()
Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException.
Returns:
the text
public void actionPerformed(java.awt.event.ActionEvent evt) {
jBtnConfirmActionPerformed(evt);
}
}
);
public void jBtnConfirmActionPerformed(java.awt.event.ActionEvent evt){
//then you add some programme here.
}