[jsword-devel] Look and Feel Switching

Eric Galluzzo jsword-devel@crosswire.org
Tue, 09 Mar 2004 18:32:57 -0500


On Tue, 2004-03-09 at 17:33, Joe Walker wrote:
> > If the laf is to be an option, I think it would also be nice to 
> > provide a pick list of the available lafs. I have found that this 
> > differs between OS. For example, I don't have a Mac laf on my Windows box
> > and on a Solaris workstation, Windows laf is not installable (it is 
> > there but disabled, supposedly for licensing reasons). So the pick 
> > list would need to be determined dynamically.
> 
> Not sure I can think of a good way to fix this.
> Maybe next week.

Well, there's UIManager.getInstalledLookAndFeels().  But that probably
doesn't return third-party L&Fs, unless they call
UIManager.installLookAndFeel() -- which they probably do when the L&F
class is loaded.

    - Eric