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

REGRESSION: XP L&F, jdk 1.5.0_08 or 1.5.0_09 preferred size of JToggleButton in JToolbar is wrong.

    XMLWordPrintable

    Details

      Description

      running jdk 1.5.0_08 or 1.5.0_09, only on winxp l&f.
      when running the attached application (by typing ant run in the project's root directory) there is one toggle button with dots instead of the text (too small width of the button) and other two buttons which are too wide.

      The problem is that *after* adding the toggle button into toolbar, calling button.setPrefferedSize(button.getPrefferedSize()) sets the width of the button smaller then needed.

      When calling button.setPrefferedSize(button.getPrefferedSize()) *before* adding toggle button into toolbar, width is set bigger then needed.

      This is the same issue as was in JDK 1.6, number 6349010

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              dsimoneksunw David Simonek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: