RE: Using css to set font props in Swing app

"R. Dale Asberry" <[email protected]> Tue, 23 Dec 2003 12:50:29 -0500
Newsgroups gmane.comp.java.luxor-xul.devel
Message-ID <[email protected]>
> Hi Dale,
>
> > The problem I want to solve is to minimize the
> > amount of custom/Swing/action
> > code needed by the scripter for simple things like
> > setting various font
> > properties like typeface, modifiers like italic, and
> > font size.  The Luxor
> > XUL CSS reference in the overview paragraph suggests
> > that these things can
> > be set using CSS, however, it doesn't appear to
> > work.  Am I missing
> > something?  If the code to enable this is
> > incomplete, where would I start
> > for implementing it?
>
>   Can you post an example of what you're trying to
> achieve?

Sure...

<label value="Welcome to the Installer" style="font-size: 10; font-style:
normal; font-family: arial" />
<button label="Next" style="font-size: 10; font-weight: bold; font-family:
sans-serif" />

It seems that these styles don't work on Swing apps.

>
>   Also can you let us know more about your project to
> create rich, scriptable installation packages? Is it
> open-source? Is it hosted on sourceforge? etc.

I have an open source project (judy.jini.org) that requires significant
configuration to run properly.  Since it is open source, I don't want to
rely on the "free" versions of the commercial installers.  That lead to some
investigations of open source installers out there.  Unfortunately, I was
disappointed with the lack of features in the few that I found, and almost
all of them were difficult to use or extend.  I temporarily decided to use
IzPack (www.izforge.com/izpack/).  It can do some very simple installations,
however, configuring a Jini service can get quite involved and I realized I
could write some Ant scripts to fill in the missing functionality.
Unfortunately, the project owner objected to that use of the izpack code.  I
considered how long it would take to implement calls to Ant scripts and the
difficulty in maintaining a fork and decided to look elsewhere.  I looked at
Jelly, was very impressed, but didn't like the dependency on Maven.  I
finally came across XUL and Luxor and realized I had a great match.

So far, I've implemented very basic features for loosely coupling XulActions
to xul components.  I'm able to define simple screens that navigate back and
forth (which can be dynamically reloaded to pick up changes made to the XUL
source files) and I did it with about 30 hours of coding!  As I progress, I
plan on implementing an AntScriptAction that calls Ant scripts and various
other convenience actions (like enabling/disabling other buttons).  Frankly,
I think I've accomplished more in a shorter time frame by building it around
XUL than it would have taken to enhance any other installer product.

The installer is open source licensed under the CPL.  I will be hosting the
project on java.net, but am more interested in getting it working for my
Jini project first ;-)  If anyone else is interested in contributing, I can
put it up now!  Would you object to Installux for the project name
considering the closeness to Luxor?

Dale



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click