Java Gui Builder
You are here: Home   >   Documentation   >   JGB Elements Documentation   >   Strut Element
JGB Element Navigation
tab
ref

Strut Element

Group membership: Controls

Struts are fixed width or height (or both) controls which are invisible, but use a fixed amount of space. These can be used to separate groups of controls.

One of width or height must be present, or a parsing exception will occur.

Attributes

Name Type Required Description
height CDATA No

Defines the height of this strut object. The height is in pixels.

width CDATA No

Defines the width of this strut object. The width is in pixels.

Example usage

…
<button id="okButton"/>
<!-- Add two pixels of space between the ok and cancel buttons -->
<strut width="2"/>
<button id="cancelButton"/>
…
        

Parent element(s)

controls, control, panel, tab.

Child element(s)

None
Back to top
SourceForge Logo
Hosted on SourceForge.net
Valid XHTML 1.0!
Valid XHTML 1.0 !
Valid CSS!
Valid CSS !
Code Coverage by Clover
Code Coverage provided by Clover
 |  Home |  License |  Downloads |  Documentation |  Developers |  Mailing Lists |  Dependencies |  Links |  Privacy Policy |  SF Project Home |