1 |
rozelak@×××××.cz wrote: |
2 |
> Hallo, |
3 |
> |
4 |
> I want to ask, if there is a way of choosing default Look&Feel for installed |
5 |
> java. The default PLAF is Metal (javax.swing.plaf.metal.MetalLookAndFeel), |
6 |
> but it does not look wery well ;-) How to tell java (using java-config?) |
7 |
> to use GTK+ (com.sun.java.swing.plaf.gtk.GTKLookAndFeel), or others |
8 |
> once installed, by default. I gues it must be configurable somewhere, |
9 |
> but I don't think that java-config can handle it now. So, how to do |
10 |
> it now, and will java-config support it in future? |
11 |
|
12 |
http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html#commandLine |
13 |
|
14 |
Looking at this, seems there's the command line param, and |
15 |
swing.properties in jdk's dir, which would need to be changed after each |
16 |
jdk reinstall though, some equivalent file in $HOME/.java or similar |
17 |
would be nice but I'm not sure there exists one. |
18 |
|
19 |
Command line param should be somehow possible with gjl-based launchers |
20 |
for java applications installed through portage. The launcher will |
21 |
source files in /etc/java-config-2/launcher.d/$package and |
22 |
~/.gentoo/java-config-2/launcher.d/$package |
23 |
(see /usr/share/java-config-2/launcher/launcher.bash) |
24 |
Declaring something like gjl_args="-Dswing.defaultlaf=$foo" there should |
25 |
be eventually passed to the java process. |
26 |
|
27 |
Won't affect running java manually though, and it's hacky. Certainly |
28 |
room for improvements, suggestions welcome. |
29 |
|
30 |
> I am sorry if a similar qestion was already answered, but there is no |
31 |
> way of searching in the mailing list (except going through all the messages) |
32 |
|
33 |
I think gmane.org can search through archives of mailing lists including |
34 |
this one, but I don't recall such question myself. |
35 |
|
36 |
> P.S. mabye one more little question: is gentoo going to support opensourced |
37 |
> java, once suitable for use? I mean download sources and compile all |
38 |
> from scratch? |
39 |
|
40 |
Sure, one day :) openjdk builds are available in java-experimental |
41 |
overlay, but it's time-consuming to maintain them and we could surely |
42 |
use more people dedicated to that... |
43 |
|
44 |
Caster |
45 |
-- |
46 |
gentoo-java@l.g.o mailing list |