Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6420678

JToolBar's orientation property is missing enum attribute

    XMLWordPrintable

Details

    • b03
    • x86
    • windows_xp
    • Not verified

    Description

      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.

      Attachments

        Activity

          People

            mlapshin Mikhail Lapshin (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: