From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JHiIV-0007kB-2O for garchives@archives.gentoo.org; Wed, 23 Jan 2008 16:17:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E96E2E0158; Wed, 23 Jan 2008 16:17:53 +0000 (UTC) Received: from nenya.ms.mff.cuni.cz (nenya.ms.mff.cuni.cz [195.113.20.55]) by pigeon.gentoo.org (Postfix) with ESMTP id C0961E0158 for ; Wed, 23 Jan 2008 16:17:53 +0000 (UTC) Received: from vpn-ksi-dsrg.ms.mff.cuni.cz ([195.113.20.92] helo=[10.10.16.171]) by nenya.ms.mff.cuni.cz with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JHiIT-0002Fm-6U for gentoo-java@lists.gentoo.org; Wed, 23 Jan 2008 17:17:53 +0100 Message-ID: <479768B0.6030104@gentoo.org> Date: Wed, 23 Jan 2008 17:17:52 +0100 From: Vlastimil Babka User-Agent: Thunderbird 2.0.0.9 (X11/20071118) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@lists.gentoo.org MIME-Version: 1.0 To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] Choosing default PLAF for SWIG References: <1ee44e1b5b1eb93cc4ce4d28b91b608b@www2.mail.volny.cz> In-Reply-To: <1ee44e1b5b1eb93cc4ce4d28b91b608b@www2.mail.volny.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: fb223ee1-e2b4-47ae-ae35-7dda3efd32ed X-Archives-Hash: 4abef9be8a600fe91e0a50252613a1f9 rozelak@volny.cz wrote: > Hallo, > > I want to ask, if there is a way of choosing default Look&Feel for installed > java. The default PLAF is Metal (javax.swing.plaf.metal.MetalLookAndFeel), > but it does not look wery well ;-) How to tell java (using java-config?) > to use GTK+ (com.sun.java.swing.plaf.gtk.GTKLookAndFeel), or others > once installed, by default. I gues it must be configurable somewhere, > but I don't think that java-config can handle it now. So, how to do > it now, and will java-config support it in future? http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html#commandLine Looking at this, seems there's the command line param, and swing.properties in jdk's dir, which would need to be changed after each jdk reinstall though, some equivalent file in $HOME/.java or similar would be nice but I'm not sure there exists one. Command line param should be somehow possible with gjl-based launchers for java applications installed through portage. The launcher will source files in /etc/java-config-2/launcher.d/$package and ~/.gentoo/java-config-2/launcher.d/$package (see /usr/share/java-config-2/launcher/launcher.bash) Declaring something like gjl_args="-Dswing.defaultlaf=$foo" there should be eventually passed to the java process. Won't affect running java manually though, and it's hacky. Certainly room for improvements, suggestions welcome. > I am sorry if a similar qestion was already answered, but there is no > way of searching in the mailing list (except going through all the messages) I think gmane.org can search through archives of mailing lists including this one, but I don't recall such question myself. > P.S. mabye one more little question: is gentoo going to support opensourced > java, once suitable for use? I mean download sources and compile all > from scratch? Sure, one day :) openjdk builds are available in java-experimental overlay, but it's time-consuming to maintain them and we could surely use more people dedicated to that... Caster -- gentoo-java@lists.gentoo.org mailing list