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

Default value of JPanel opaque changed when using GTK Look and Feel

XMLWordPrintable

      In UpdateManager, I was displaying the "Sun logo" on a JPanel and then adding a JTabbedPane to the panel.
      The logo ended up being displayed "behind" the tabs.
      When I ran UM using the latest jdk 1.6 I cound find (java full version "1.6.0-rc-b102"), the image did
      not appear.

      I found that the default "opaque" value of the JPanel was now "true". Using jdk1.5, its "false". So if
      I explicitly change my code and add 'setOpaque(false)' when the JPanel is created, my image shows up as
      I would expect.

      However, this would appear to be a regression since the default value changed and certain applications
      may not display correctly.

      I've included a test program in the attachments as well as the background image used and 2 screenshots
      of the results, one when using jdk 1.5, the other when usring jdk 1.6.

            shickeysunw Shannon Hickey (Inactive)
            jwarzech Joe Warzecha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: