Re: [gentoo-user] Java default Swing stile

2008-05-31 Thread Florian Philipp
On Fri, 30 May 2008 22:04:55 +0200
"Dirk Uys" <[EMAIL PROTECTED]> wrote:

> On Fri, May 30, 2008 at 9:20 PM, Florian Philipp
> <[EMAIL PROTECTED]> wrote:
> > Hi list!
> >
> > I've recently started both programming and using some Java
> > applications (not that I would have a choice ...).
> >
> > Well, anyway, as it seems the default style for Swing is set to
> > "Metal", Java's own rather ugly and non-conforming variant. Is there
> > a way to set this to GTK, QT or whatever I have here other than
> > through the functionality in the programs themeselve?
> > Or is it really the Java-VM who's dictating what's the default for a
> > given platform (Windows/Linux)?
> >
> > Thanks in advance!
> >
> > Florian Philipp
> >
> 
> I think the JVM defaults to motif, it's supported on most platforms. I
> found this on the web:
> 
> 
> Yes, it is possible.
> 
> In the ~/java/lib dir, create / edit a file with name
> swing.proprierties:
> 
> Change the line:
> 
> swing.defaultlaf=com.sun.java.swing.plaf.CURRENTLO OKANDFEEL
> 
> to
> 
> swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLo okAndFeel
> 
> 
> Don't know if it works though?

No, unfortunately not. I also tried ~/.java
and /opt/sun-jdk-1.6.0.06/ but it's just ignored.

Thanks anyway!


signature.asc
Description: PGP signature


Re: [gentoo-user] Java default Swing stile

2008-05-30 Thread Dirk Uys
On Fri, May 30, 2008 at 9:20 PM, Florian Philipp
<[EMAIL PROTECTED]> wrote:
> Hi list!
>
> I've recently started both programming and using some Java applications
> (not that I would have a choice ...).
>
> Well, anyway, as it seems the default style for Swing is set to
> "Metal", Java's own rather ugly and non-conforming variant. Is there
> a way to set this to GTK, QT or whatever I have here other than
> through the functionality in the programs themeselve?
> Or is it really the Java-VM who's dictating what's the default for a
> given platform (Windows/Linux)?
>
> Thanks in advance!
>
> Florian Philipp
>

I think the JVM defaults to motif, it's supported on most platforms. I
found this on the web:


Yes, it is possible.

In the ~/java/lib dir, create / edit a file with name swing.proprierties:

Change the line:

swing.defaultlaf=com.sun.java.swing.plaf.CURRENTLO OKANDFEEL

to

swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLo okAndFeel


Don't know if it works though?
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Java default Swing stile

2008-05-30 Thread Florian Philipp
Hi list!

I've recently started both programming and using some Java applications
(not that I would have a choice ...).

Well, anyway, as it seems the default style for Swing is set to
"Metal", Java's own rather ugly and non-conforming variant. Is there
a way to set this to GTK, QT or whatever I have here other than
through the functionality in the programs themeselve?
Or is it really the Java-VM who's dictating what's the default for a
given platform (Windows/Linux)?

Thanks in advance!

Florian Philipp


signature.asc
Description: PGP signature