10.1. Bean properties

Most Java™ Objects specified in .xxe_gui files may be parameterized using property child elements. A property child element specifies a Bean (that is, a Java™ Object) property.


<property name="columns" type="int" value="40" />

implies that the bean to be parametrized has a public method which resembles:

setColumns(int number)

Such properties are completely specific to the bean they parametrize and therefore, cannot be described in this manual.

typeCorresponding Java™ typeSyntax of valueExample
booleanbooleantrue, falsetrue
bytebyteinteger: -128 to 127 inclusive100
charchara single charactera
shortshortinteger: -32768 to 32767 inclusive1000
intintinteger: -2147483648 to 2147483647 inclusive-1
longlonginteger: -9223372036854775808 to 9223372036854775807, inclusive255
floatfloatsingle-precision 32-bit format IEEE 754-0.5
doubledoubledouble-precision 64-bit format IEEE 7541.0
Stringjava.lang.Stringa stringHello, world!
  • #RRGGBB where RR, GG, BB are hexadecimal numbers between 0 and 255 inclusive;

  • or rbg(R, G, B) where R, G, B are decimal numbers between 0 and 255 inclusive;

  • or standard HTML/CSS named colors: black, white, red, silver, etc.


  • rgb(255,255,255)

  • white


fontfamily [ -BOLD|BOLDITALIC|ITALIC ] [ -pointsize ]

Default style is PLAIN.

Default pointsize is 12.

  • Monospaced

  • Serif-14

  • SansSerif-ITALIC

  • Serif-BOLD-10

URLjava.net.URLany URL supported by XXE. A relative URL is resolved against the location of the .xxe_gui file containing the bean property specification.
  • http://www.xmlmind.com/

  • images/logo.png

Example (a StatusTool is a kind of JTextField):

<tool name="heavilyParametrizedStatusTool">
  <property name="text" type="String" value="   Hello,   world!   " />
  <property name="editable" type="boolean" value="true" />
  <property name="focusable" type="boolean" value="true" />
  <property name="horizontalAlignment" type="int" value="RIGHT"1 />
  <property name="font" type="Font" value="Serif-BOLD-16" />
  <property name="foreground" type="Color" value="#000080" />
  <property name="background" type="Color" value="silver" />
  <property name="selectedTextColor" type="Color" value="rgb(255,0,0)" />
  <property name="caretPosition" type="int" value="5" />
  <property name="alignmentX" type="float" value="0.5" />


Notice here the use of symbolic integer constant javax.swing.JTextField.RIGHT.