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

setOpaque(false) in JDesktopPane is not functioning as expected in GTK LookAndFe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 5.0
    • client-libs
    • generic
    • linux_redhat_3.0

      JAVA VERSION
      -------------
      java version "swing-jcg-linux-02-2004-09-13-int.mustang"
      Java(TM) 2 Runtime Environment, Standard Edition (build swing-jcg-linux-02-2004-09-13-int.mustang)
      Java HotSpot(TM) Client VM (build 1.6.0-beta-b03, mixed mode)

      OS INFO
      --------
      Linux javasoft2k 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux

      HARDWARE INFO
      -------------
      processor : 0
      vendor_id : GenuineIntel
      cpu family : 15
      model : 0
      model name : Intel(R) Pentium(R) 4 CPU 1500MHz
      stepping : 7
      cpu MHz : 1495.487
      cache size : 256 KB
      fdiv_bug : no
      hlt_bug : no
      f00f_bug : no
      coma_bug : no
      fpu : yes
      fpu_exception : yes
      cpuid level : 2
      wp : yes
      flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
      bogomips : 2981.88

      STEPS TO REPRODUCE
      -------------------
      1. set JAVA_HOME to specified java.
      2. $JAVA_HOME/bin/javac Test.java
      3. Execute the program in GTK LookAndFeel $JAVA_HOME/bin/java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel Test
      4. Exceute the program in JAVA LookAndFeel $JAVA_HOME/bin/java Test
      5. Now see the difference between the output of the two. You will observe that panel's background "RED" is visible in JAVA L&F but not in GTK L&F.

      Expected Behaviour
      ------------------
      Panel's background color "RED" should be visible if the JDesktopPane's opaque value is false.

      Actual Behaviour
      -----------------
      Panel's background color is not visible when JDesktopPane's opaque value is false.


      ###@###.### 2004-09-20

            joutwatesunw Joshua Outwater (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: