PanelTextEditOptions
A value shape that methods take or return.
Fields
| Field | Type | Description |
|---|---|---|
color | PanelColor? | The text colour (setForeground). |
bg | Color? | The field's background (setBackground). |
id | string? | The field's identity between frames, where its place in the panel moves. |
width | number? | setPreferredSize's width. Without it the field is egui's 280 wide. |
height | number? | setPreferredSize's height: a single line is centred in it. |
hint | string? | Grey text shown while the field is empty (a placeholder). |
readOnly | boolean? | setEditable(false): selectable and copyable, not editable. |
focus | boolean? | requestFocusInWindow(): asks again every pass it is set. |
password | boolean? | A JPasswordField. |
charLimit | number? | The most characters it takes (a length DocumentFilter). |
frame | boolean? | false: no border or box (a FlatTextField). |
tooltip | PanelTooltipText? | setToolTipText: text, or styled runs (an <html> tooltip's spans). |
enabled | boolean? | setEnabled. |