class org.aswing.JTextField extends JTextComponent
JTextField
is a component that allows the editing of a single line of text.
@author Tomato
@author paling
![]() | Show Events | Hide Events
|
Class Fields
Instance Fields
A number of columns in this JTextField, if it changed then call parent to do layout.
If columns is set to zero or min than zero, the preferred width will be matched just to view all of the text.
The default value is zero.
function addActionListener(listener:Dynamic ->Void?priority:Int = 0, ?useWeakReference:Bool = false): Void
Adds a action listener to this text field. JTextField fire a action event when user press Enter Key when input to text field. @see org.aswing.event.AWEvent#ACT
listener | the listener |
priority | the priority |
useWeakReference | Determines whether the reference to the listener is strong or weak. |
function removeActionListener(listener:Dynamic ->Void): Void
Removes a action listener. @see org.aswing.event.AWEvent#ACT
listener | the listener to be removed. |