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

Xgl/Compiz/Java 1.5/Swing problem

XMLWordPrintable

    • b01
    • x86
    • linux

        here is a quote from mail from ###@###.###
        >We've encountered some difficulties with Xgl/Compiz displaying apps
        >using Java 1.5, Swing and the XToolkit running under Xgl/Compiz.
        >
        >The difficulty seems to be specifically related to the compiz window
        >manager rather than Xgl (our testing has shown the window managers
        >enlightment and ratpoision also exhibit the behaviour, but not more
        >maintstream managers like metacity). We've created a test case of
        >about
        >20 lines long to demonstrate the behaviour (attached), which is that
        >windows draw with no contents, but the widgets behavior are still
        >present (ie click where a top level menu item should be and the menu
        >will appear in more complex apps). MToolkit does not appear to
        >have the
        >issue, but of course using it for 1.5 apps is not an ideal
        >solution. Do
        >you guys have any interest in helping look at this problem or know
        >someone who would inside the Java/Swing team? Even 30 minutes on the
        >phone might give us a better understanding why compiz has the issue
        >but
        >metacity does not so we can correct what we need to.

        The test to reproduce the problem:

        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 ();
        }

        }

              art Artem Ananiev (Inactive)
              son Oleg Sukhodolsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: