-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b03
-
x86
-
windows_xp
-
Not verified
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
The 'orientation' property of JToolBar does not have an enum attribute specified in its BeanInfo, which means that it looks like an ordinary int-valued property instead of being restricted to HORIZONTAL and VERTICAL only.
From the 1.5.0 source code, here is the beaninfo for the orientation property:
* @beaninfo
* description: The current orientation of the tool bar
* bound: true
* preferred: true
For comparison, here is the beaninfo from JSplitPane's orientation property, which does contain an enum attribute:
* @beaninfo
* bound: true
* description: The orientation, or how the splitter is divided.
* enum: HORIZONTAL_SPLIT JSplitPane.HORIZONTAL_SPLIT
* VERTICAL_SPLIT JSplitPane.VERTICAL_SPLIT
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
The 'orientation' property of JToolBar does not have an enum attribute specified in its BeanInfo, which means that it looks like an ordinary int-valued property instead of being restricted to HORIZONTAL and VERTICAL only.
From the 1.5.0 source code, here is the beaninfo for the orientation property:
* @beaninfo
* description: The current orientation of the tool bar
* bound: true
* preferred: true
For comparison, here is the beaninfo from JSplitPane's orientation property, which does contain an enum attribute:
* @beaninfo
* bound: true
* description: The orientation, or how the splitter is divided.
* enum: HORIZONTAL_SPLIT JSplitPane.HORIZONTAL_SPLIT
* VERTICAL_SPLIT JSplitPane.VERTICAL_SPLIT
REPRODUCIBILITY :
This bug can be reproduced always.