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

JToolbar wrong width when detached from left/right side

XMLWordPrintable

    • Cause Known
    • x86
    • windows_nt

      FULL PRODUCT VERSION :
      java version "1.5.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      When you detach a VERTICAL toolbar from left or right side, fthe resulting VERTICAL floating toolbar have an excessive width.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Run JToolbar demo linked in JToolbar API page.
      2. Move the toolbar in right or left side.
      3. Detach it

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The toolbar should become floating (saving VERTICAL orientation: this works!) and respect its width (adapting to vertically disposed buttons width).

      Otherwise, the toolbar should get HORIZONTAL orientation (as in JDK 1.4.2)
      ACTUAL -
      The toolbar's width increases a lot !

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      [JToolbar demo linked in JToolbar API page].

      http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/ToolBarDemo.java
      ---------- END SOURCE ----------

      Release Regression From : 1.4.2_08
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: