Results 1 to 10 of 10

Thread: Java Swing and XGL?

  1. #1
    Join Date
    Aug 2006
    Location
    Melbourne
    Beans
    194
    Distro
    Ubuntu 12.04 Precise Pangolin

    Java Swing and XGL?

    G'day

    I've recently enabled XGL. Sweet. But this has stopped my otherwise super-performing NetBeans IDE (a Java Swing application) to render as a solid grey box.

    Does anyone know of issues/tricks regarding getting Swing apps to render under XGL?

    Cheers
    Jem

  2. #2
    Join Date
    Oct 2005
    Beans
    15

    Re: Java Swing and XGL?

    There is a path to the XGL that will fix your problem. I'm trying to mage beryl guys to include it on the edgy repositoy.

  3. #3
    Join Date
    Aug 2006
    Location
    Poland
    Beans
    234
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Java Swing and XGL?

    Quote Originally Posted by machaval View Post
    There is a path to the XGL that will fix your problem. I'm trying to mage beryl guys to include it on the edgy repositoy.
    Hi!

    I have the same problem... Just let us know when patch will be available...

  4. #4
    Join Date
    Aug 2006
    Location
    Poland
    Beans
    234
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Java Swing and XGL?

    Quote Originally Posted by Seine View Post
    G'day
    Does anyone know of issues/tricks regarding getting Swing apps to render under XGL?
    I've searched beryl forums and I think I found solution... Edit file /etc/environment and add line

    Code:
    AWT_TOOLKIT="MToolkit"
    then reboot... Don't know if it will help with NetBeans, but it helped me in other apps (e.g. JUDE)

  5. #5
    Join Date
    Nov 2006
    Beans
    1

    Re: Java Swing and XGL?

    worked for me!!! Netbeans 5.5 Thanks man

  6. #6
    Join Date
    Aug 2006
    Location
    Poland
    Beans
    234
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Java Swing and XGL?

    Quote Originally Posted by kaz_greece View Post
    worked for me!!! Netbeans 5.5 Thanks man
    Cool!

    You are welcome

  7. #7
    Join Date
    Dec 2006
    Beans
    4

    Re: Java Swing and XGL?

    Hi, Everyone.
    Actually I have the same problem but not about Netbeans.
    I am using Eclipse 3.2 to develop a certain swing application, when I'm using Beryl, Eclipse is fine, but my Swing application won't show anything, but that solid gray wall.

    And I also tried the /etc/environment thing as mentioned in previous post, but it's still not working for me, (while My Splash Window is OK, using JWindow Class) Is there any further tips?
    Thanks in advance.

    *PROBLEM SOLVED*
    sorry everyone, I forgot to reboot, it works perfect, thanks!!
    Last edited by littledeer1974; January 29th, 2007 at 06:29 AM.

  8. #8
    Join Date
    Jan 2006
    Location
    Leuven, Belgium
    Beans
    3,414

    Re: Java Swing and XGL?

    I installed beryl from deb http://ubuntu.beryl-project.org edgy main and have java6 installed with
    Code:
    export _JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
    set and beryl and xgl render all my swing applications fine.

  9. #9
    Join Date
    May 2007
    Beans
    2
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Java Swing and XGL?

    hi
    im using feisty, netbeans 5.5 and jdk6
    ive tried editing /etc/environment with AWT_TOOLKIT="MToolkit" but failed
    i got the following msg

    java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/motif21/libmawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1647)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1005)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1668)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1594)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1616)
    at java.awt.Color.<clinit>(Color.java:263)
    at javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTh eme.java:59)
    at javax.swing.plaf.metal.MetalLookAndFeel.getCurrent Theme(MetalLookAndFeel.java:1673)
    at javax.swing.plaf.metal.MetalLookAndFeel.createDefa ultTheme(MetalLookAndFeel.java:1568)
    at javax.swing.plaf.metal.MetalLookAndFeel.getDefault s(MetalLookAndFeel.java:1590)
    at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:537)
    at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:577)
    at javax.swing.UIManager.initializeDefaultLAF(UIManag er.java:1331)
    at javax.swing.UIManager.initialize(UIManager.java:14 18)
    at javax.swing.UIManager.maybeInitialize(UIManager.ja va:1406)
    at javax.swing.UIManager.getDefaults(UIManager.java:6 56)
    at javax.swing.filechooser.FileSystemView.getFileSyst emView(FileSystemView.java:63)
    at org.openide.filesystems.FileUtil.<clinit>(FileUtil .java:64)
    at org.netbeans.core.startup.TopLogging.printSystemIn fo(TopLogging.java:187)
    at org.netbeans.core.startup.TopLogging.<init>(TopLog ging.java:112)
    at org.netbeans.core.startup.CLIOptions.initialize(CL IOptions.java:205)
    at org.netbeans.core.startup.Main.start(Main.java:294 )
    at org.netbeans.core.startup.TopThreadGroup.run(TopTh readGroup.java:96)
    at java.lang.Thread.run(Thread.java:619)
    java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/motif21/libmawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1647)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1005)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1668)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1594)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1616)
    at java.awt.Color.<clinit>(Color.java:263)
    at javax.swing.plaf.metal.MetalTheme.<clinit>(MetalTh eme.java:59)
    at javax.swing.plaf.metal.MetalLookAndFeel.getCurrent Theme(MetalLookAndFeel.java:1673)
    at javax.swing.plaf.metal.MetalLookAndFeel.createDefa ultTheme(MetalLookAndFeel.java:1568)
    at javax.swing.plaf.metal.MetalLookAndFeel.getDefault s(MetalLookAndFeel.java:1590)
    at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:537)
    at javax.swing.UIManager.setLookAndFeel(UIManager.jav a:577)
    at javax.swing.UIManager.initializeDefaultLAF(UIManag er.java:1331)
    at javax.swing.UIManager.initialize(UIManager.java:14 18)
    at javax.swing.UIManager.maybeInitialize(UIManager.ja va:1406)
    at javax.swing.UIManager.getDefaults(UIManager.java:6 56)
    at javax.swing.filechooser.FileSystemView.getFileSyst emView(FileSystemView.java:63)
    at org.openide.filesystems.FileUtil.<clinit>(FileUtil .java:64)
    at org.netbeans.core.startup.TopLogging.printSystemIn fo(TopLogging.java:187)
    at org.netbeans.core.startup.TopLogging.<init>(TopLog ging.java:112)
    at org.netbeans.core.startup.CLIOptions.initialize(CL IOptions.java:205)
    at org.netbeans.core.startup.Main.start(Main.java:294 )
    at org.netbeans.core.startup.TopThreadGroup.run(TopTh readGroup.java:96)
    at java.lang.Thread.run(Thread.java:619)
    pls help me ..

  10. #10
    Join Date
    Jul 2007
    Location
    Medellin, Colombia
    Beans
    66
    Distro
    Ubuntu

    Re: Java Swing and XGL?

    Hi, I'm using Gutsy and Compiz Fusion and it has a plugin in the CCSM named "Workarounds" and there it can be enabled a fix for java apps and other stuff, it works just fine for me

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •