[jsword-devel] SkinLF (was: New Developer)
Aleksander Rozman - Andy
jsword-devel@crosswire.org
Sat, 27 Dec 2003 23:14:30 +0100
At 12/27/2003, you wrote:
>Aleksander Rozman - Andy wrote:
>>>>Here is the code to activate SkinLF.
>>>>
>>>>com.l2fprod.gui.plaf.skin.SkinLookAndFeel.setSkin(com.l2fprod.gui.plaf.skin.SkinLookAndFeel.loadThemePack("./aquathemepack.zip"));
>>>>com.l2fprod.gui.plaf.skin.SkinLookAndFeel.enable();
>>>
>>>Ugh.
>>>That doesn't work very well with the PLAF system as designed by Sun. The
>>>idea is that you can use a new PLAF without needing to hardcode your app.
>>>Are you sure there is no better way to use it?
>>Sorry no. We could just put one option in skin preferences to either load
>>a class specified by uesr (it would be best if there would be fixed
>>option with LFs installed in rt.jar+one custom option so that user can
>>write it by hand) and second option to use skinlf with external LF file.
>>For skinLF you can add L&F from many platform, you just need to suply
>>them in zip file...
>
>I took a look through the javadoc for enable():
>"Set the look and feel to SkinLookAndFeel. This method must be called to
>set the look and feel in applets or JavaWebStart enabled applications"
>
>And since this class inherits from javax.swing.LookAndFeel - I would have
>thought that for applications we could use something more standard.
>
>We could easily add an option to config.xml that configured the skin
>within skinlf, and when com.l2fprod.gui.plaf.skin.SkinLookAndFeel was set
>as the skin (to be enabled by standard means) you got to see the
>appropriate theme.
>
>Joe.
Yeah I have another great question. Why do you use XML files for
configuration file. There are a lot of ways to configure software and
instanciating about 30 classes to be able to read few settings is really
not a way to go. Java has a nifty class called Properties, which can do
everything... With a little memory.
Andy
>_______________________________________________
>jsword-devel mailing list
>jsword-devel@crosswire.org
>http://www.crosswire.org/mailman/listinfo/jsword-devel
**************************************************************************
* Aleksander Rozman - Andy * Fandoms: E2:EA, SAABer, Trekkie, Earthie *
* andy@kksonline.com * Sentinel, BH 90210, True's Trooper, *
* andy@atechnet.dhs.org * Heller's Angel, Questie, Legacy, PO5, *
* Maribor, Slovenia (Europe) * Profiler, Buffy (Slayerete), Pretender *
* ICQ-UIC: 4911125 *********************************************
* PGP key available * http://www.atechnet.dhs.org/~andy/ *
**************************************************************************