class org.aswing.JToolBar extends Container
Interfaces | |||
![]() | Orientable |
|
JToolBar
provides a component that is useful for
displaying commonly used 'Action's or controls.
JToolBar will change buttons's isOpaque() method, so if your programe's logic is related to button's opaque, take care to add buttons to JToolBar.
With most look and feels,
the user can drag out a tool bar into a separate window
(unless the floatable
property is set to 'false').
For drag-out to work correctly, it is recommended that you add
JToolBar
instances to one of the four "sides" of a
container whose layout manager is a BorderLayout
,
and do not add children to any of the other four "sides".
Authors: paling, ngrebenshikov
Class Fields
Instance Fields
The margin between the tool bar's border and its buttons.
Setting to 'null' causes the tool bar to use the default margins. The tool bar's default 'Border' object uses this value to create the proper margin. However, if a non-default border is set on the tool bar, it is that 'Border' object's responsibility to create the appropriate margin space (otherwise this property will effectively be ignored).
@see Insets
var orientation:Int
The orientation of the tool bar.
The orientation must have
either the value HORIZONTAL
or VERTICAL
.