Java Gui Builder |
|
You are here: | Home > Documentation > JGB Elements Documentation > Textfield Element |
Group membership: Controls
Adds a text field or area to the window. The difference between a field and an area is that the area is multiline. Therefore it is more adapted to long runs of text.
Name | Type | Required | Description |
---|---|---|---|
columns | CDATA | No |
Determine the size of the field, in columns. |
id | ID | No |
Identifies the name by which this control will be referenced by other parts of the JGB XML file or Java code. |
refaction | IDREF | No |
More information forthcoming |
reflabel | IDREF | No |
Identifies a control that prompts this one. |
rows | CDATA | No |
Declare that this text field will instead be a text area, unless the rows attribute equals integer 1. This attribute must either be absent, or contain a value that is greater than or equal to 1. |
text | CDATA | No |
Specify the default text that will appear in the field when the window opens. |
… <!-- Add a label to the screen which is to be the label of a text field --> <label id="nameLabel" text="Name:" mnemonic="n"/> <textfield id="nameField" columns="80" reflabel="nameLabel"/> …
Hosted on SourceForge.net |
Valid XHTML 1.0 ! |
Valid CSS ! |
Code Coverage provided by Clover |