addActionListener
addActionListener: (FlatTextField, any) -> ()The text field's.
FlatTextField.new()| Method | Returns | Description |
|---|---|---|
addActionListener(any) | () | The text field's. |
addKeyListener(any) | () | The text field's. |
getText() | string | The text field's text. |
getTextField() | JTextField | The JTextField inside. |
setBackground(Color?, saveColor: boolean?) | () | The background (kept for the hover effect unless saveColor is false). |
setEditable(boolean) | () | Whether the text can be edited. |
setHoverBackgroundColor(Color?) | () | The background under the pointer. |
setText(string?) | () | The text field's text. |
new() | FlatTextField | FlatTextField.new(). |
| Method | Returns | Description |
|---|---|---|
FlatTextFieldClass.new | FlatTextField | FlatTextField.new(). |
addActionListeneraddActionListener: (FlatTextField, any) -> ()The text field's.
addKeyListeneraddKeyListener: (FlatTextField, any) -> ()The text field's.
getTextgetText: (FlatTextField) -> stringThe text field's text.
getTextFieldgetTextField: (FlatTextField) -> JTextFieldThe JTextField inside.
setBackgroundsetBackground: (FlatTextField, Color?, saveColor: boolean?) -> ()The background (kept for the hover effect unless saveColor is false).
setEditablesetEditable: (FlatTextField, boolean) -> ()Whether the text can be edited.
setHoverBackgroundColorsetHoverBackgroundColor: (FlatTextField, Color?) -> ()The background under the pointer.
setTextsetText: (FlatTextField, string?) -> ()The text field's text.
newnew: () -> FlatTextFieldFlatTextField.new().