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

REGRESSION: buttons within a toolbar will get a ridiculously wide border

    XMLWordPrintable

    Details

      Description

      J2SE Version (please include all output from java -version flag):
       java version "1.5.0_08"
       Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
       Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode)

      Does this problem occur on J2SE 1.3, 1.4.x or 1.5? Yes / No (pick one)
       No, it works fine with Mustang and 5.0u6 and 5.0u7.

      Operating System Configuration Information (be specific):
       Win_XP with Windows look and feel.

      Bug Description:
        If you have a toolbar with buttons, the buttons get a ridiculously wide border
        the first time they appear. This happens because in JDK 5.0 update 8, someone
        modified the class WindowsButtonListener to make it listen to "ancestor" events
        and reset the button border. The only workarond we found so far is to call
        toolBar.updateUI() AFTER the toolbar becomes visible. However, this workaround
        is unacceptable to us for internal reasons. Is there some other way we can work
        around this problem and can you please fix it in the next release of JDK 5.0.

      Steps to Reproduce (be specific):
        simply run the attached java program on Windows XP under JDK 5.0 update 8 and
        JDK 5.0 update 6, and you will see the difference.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmarinacsunw Joshua Marinacci (Inactive)
              Reporter:
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: