The LanguageBox extends javax.swing.JComboBox. It has the following
entry in the DTD file:
Table 1. LanguageBox definitionLine entry in the DTD file |
Description |
<!ELEMENT LanguageBox EMPTY> |
A LanguageBox does not contain any sub-elements |
<!ATTLIST LanguageBox
width CDATA "94"
height CDATA "22"
x CDATA #REQUIRED
y CDATA #REQUIRED
name CDATA #IMPLIED
languages CDATA #REQUIRED>
|
Attribute list |
Table 2. LanguageBox attributesAttribute |
Description |
width |
Width of the LanguageBox |
height |
Height of the LanguageBox |
x |
Horizontal coordinate for the location of the LanguageBox (mandatory) |
y |
Vertical coordinate for the location of the LanguageBox (mandatory) |
name |
Name used by the Desktop to identify this component |
languages |
Available languages (mandatory) |
The following is an example of an XML definition for a LanguageBox:
<LanguageBox height="22"
languages="Spanish,English"
width="94"
x="48"
y="2"/>