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

Beryl support in AWT/Swing as a NonReparenting WM

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • None
    • 6
    • client-libs
    • x86
    • linux

    Description

      FULL PRODUCT VERSION :
      java version "1.6.0-internal"
      Java(TM) SE Runtime Environment (build 1.6.0-internal-brad_30_dec_2006_20_53-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-internal-brad_30_dec_2006_19_05-b00, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux the-uberbeast 2.6.19-gentoo-r2 #1 SMP Thu Dec 21 20:16:21 UTC 2006 x86_64 Dual Core AMD Opteron(tm) Processor 285 AuthenticAMD GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      nvidia-drivers-1.0.9631, AIGLX, Beryl-0.1.3

      A DESCRIPTION OF THE PROBLEM :
      Similar to bug report 6429775, grey windows when using Swing applications (MatLAB 2006b's Desktop) while running Beryl Window Manager. Verified that previous example code:

      import javax.swing.*;

      public class WmTest extends JFrame {

      public WmTest () {
          JLabel l = new JLabel ("WM Test");

          this.getContentPane().add(l);
          this.setSize(256, 256);

          //this.pack();
          this.setVisible (true);
      }

      public static void
      main (String args[]) {
          WmTest r = new WmTest ();
      }

      }

      still fails on jdk6u1 binary snapshot. Likely due to only "compiz" being detected in AWT as Non-reparenting.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run above test code under Beryl WM. Judging by what I've found online, underlying 3d support (AIGLX vs. XGL) should not matter.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Application window showing "WmTest" text inside
      ACTUAL -
      Application window is all grey

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      public class WmTest extends JFrame {

      public WmTest () {
          JLabel l = new JLabel ("WM Test");

          this.getContentPane().add(l);
          this.setSize(256, 256);

          //this.pack();
          this.setVisible (true);
      }

      public static void
      main (String args[]) {
          WmTest r = new WmTest ();
      }

      }
      ---------- END SOURCE ----------

      Attachments

        Issue Links

          Activity

            People

              anthony Anthony Petrov (Inactive)
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: