1 |
On Fri, 30 May 2008 22:04:55 +0200 |
2 |
"Dirk Uys" <dirkcuys@×××××.com> wrote: |
3 |
|
4 |
> On Fri, May 30, 2008 at 9:20 PM, Florian Philipp |
5 |
> <lists@f_philipp.fastmail.net> wrote: |
6 |
> > Hi list! |
7 |
> > |
8 |
> > I've recently started both programming and using some Java |
9 |
> > applications (not that I would have a choice ...). |
10 |
> > |
11 |
> > Well, anyway, as it seems the default style for Swing is set to |
12 |
> > "Metal", Java's own rather ugly and non-conforming variant. Is there |
13 |
> > a way to set this to GTK, QT or whatever I have here other than |
14 |
> > through the functionality in the programs themeselve? |
15 |
> > Or is it really the Java-VM who's dictating what's the default for a |
16 |
> > given platform (Windows/Linux)? |
17 |
> > |
18 |
> > Thanks in advance! |
19 |
> > |
20 |
> > Florian Philipp |
21 |
> > |
22 |
> |
23 |
> I think the JVM defaults to motif, it's supported on most platforms. I |
24 |
> found this on the web: |
25 |
> |
26 |
> <start-quote> |
27 |
> Yes, it is possible. |
28 |
> |
29 |
> In the ~/java/lib dir, create / edit a file with name |
30 |
> swing.proprierties: |
31 |
> |
32 |
> Change the line: |
33 |
> |
34 |
> swing.defaultlaf=com.sun.java.swing.plaf.CURRENTLO OKANDFEEL |
35 |
> |
36 |
> to |
37 |
> |
38 |
> swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLo okAndFeel |
39 |
> </end-quote> |
40 |
> |
41 |
> Don't know if it works though? |
42 |
|
43 |
No, unfortunately not. I also tried ~/.java |
44 |
and /opt/sun-jdk-1.6.0.06/ but it's just ignored. |
45 |
|
46 |
Thanks anyway! |