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

Components inside the JToolBar are missing while changing the toolbar to different orientation.

XMLWordPrintable

      Bug Info:
      =========
      Components which are inside the JToolBar are missing while changing the toolbar orientation(vertical/horizontal).I found this issue when I changed from GTK to other(metal/motif) laf and then drag toolbar to different orientation.

      Suppose in GTK look and feel,toolbar is in horizontal orientation and if i changed to either motif or metal look and feel then its rendering properly with horizontal orientation.Once it rendered the component with new look & feel and then changed the orientation(Vertical),now you can see the issue.In this issue the components which are inside the toolbar is not changed to vertical orientation.

      Suppose in GTK look and feel toolbar is in vertical orientation and if i changed to either motif or metal look and feel then its rendering properly with vertical orientation.Once it rendered the component with new look & feel and then changed the orientation(horizontal),now you can see the issue.In this issue the components which are inside the toolbar is not changed to horizontal orientation.

      JDK Info:
      =========
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b05)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b05, mixed mode, sharing)

      Steps to Reproduce:
      ===================
      1. Launch the attached java application.
      2. Choose the GTK look and feel.
      3. Drag the toolbar horizontal orientation.
      4. Change either motif or metal look and feel.
      5. Drag the toolbar vertical orientation.

      Expected:
      =========
      All the components which are inside the toolbar should align vertically and it should be visible clearly.

      Actual:
      =======
      Components inside the toolbar are aligned horizontally and some components are missing.

      Please find the attached images and java file.

            peterz Peter Zhelezniakov
            vthotasunw Vinay Thota (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: