Results 1 to 9 of 9

Thread: Desktop integration of Java apps in Xubuntu

  1. #1
    Join Date
    Nov 2006
    Beans
    93

    Desktop integration of Java apps in Xubuntu

    I've switched from Gnome to xfce and so far the adaptation has been nice despite some missing things.
    The main one is the lack of desktop integration of Java apps and Xubuntu. They do not use the native theme. Instead they use a Java look.
    This didn't happen in Ubuntu. Is it possible to make this happen in Xubutu?

    Edit: forgot to mention: this happens with FreeMind and the Java Panel so far. Got to try Azureus. This is Xubuntu 8.04
    Last edited by jdarias; April 27th, 2008 at 11:30 PM.

  2. #2
    Join Date
    Nov 2006
    Beans
    93

    Re: Desktop integration of Java apps in Xubuntu

    bump

  3. #3
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Desktop integration of Java apps in Xubuntu

    Last edited by revertex; April 30th, 2008 at 03:23 AM.

  4. #4
    Join Date
    Nov 2006
    Beans
    93

    Re: Desktop integration of Java apps in Xubuntu

    I looked both pages, followed the advice of the thread but it didn't work. The other one (from java) was more like developer relevant stuff.

  5. #5
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Desktop integration of Java apps in Xubuntu

    from the java page:

    Specifying the Look and Feel: Command Line

    You can specify the L&F at the command line by using the -D flag to set the swing.defaultlaf property. For example:
    Code:
    java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyApp

  6. #6
    Join Date
    Nov 2005
    Location
    Poland
    Beans
    202
    I got a similar problem, it might be related. I am using Gnome though, but when running a java application with root, i get the metal theme. It works normally for normal user, it loads the gtk theme, but I don't know why this happens. In Gutsy it didn't.

    You could try this in the terminal:
    Code:
    export _JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
    and after run freemind and see, and check the terminal messages, maybe you can see some message related to your problem. I am still looking for a solution to my problem.

    Another option could be creating, or editing the swing.properties file. It should be here: /usr/lib/jvm/java-6-sun/jre/lib
    if you are using java6:
    Code:
    # Swing properties
    swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
    Last edited by janfsd; May 6th, 2008 at 04:19 PM.

  7. #7
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: Desktop integration of Java apps in Xubuntu

    I give up, none of these options works for me.

  8. #8
    Join Date
    Nov 2005
    Location
    Poland
    Beans
    202

    Re: Desktop integration of Java apps in Xubuntu

    And for the second option, you have to check wich java you are using:
    Code:
    sudo update-alternatives --list java
    Change to java-6-sun if necessary.

    Anyway the metal theme is not that bad.

  9. #9
    Join Date
    Nov 2005
    Location
    Poland
    Beans
    202

    Re: Desktop integration of Java apps in Xubuntu

    Sorry for double post. Delete this if possible.

Tags for this Thread

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
  •