Thread: [luxor-xul-develop] Using css to set font props in Swing app
Status: Beta
Brought to you by:
vamp201
From: R. D. A. <dal...@da...> - 2003-12-23 15:34:09
|
I'm developing an XUL-based Swing app around a framework that loosely couples actions to xul components. The goal of my project is to easily create rich, scriptable installation packages. 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? Thanks, Dale Asberry |
From: R. D. A. <lux...@da...> - 2003-12-23 15:38:06
|
I'm developing an XUL-based Swing app around a framework that loosely couples actions to xul components. The goal of my project is to easily create rich, scriptable installation packages. 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? Thanks, Dale Asberry |
From: R. D. A. <lux...@da...> - 2003-12-23 19:18:14
|
I just realized after looking at the samples, that font styles are selected using the "font: 15 italic" format. I apologize for not investigating this before asking the list. > -----Original Message----- > From: lux...@li... > [mailto:lux...@li...]On Behalf Of R. > Dale Asberry > Sent: Tuesday, December 23, 2003 10:40 AM > To: lux...@li... > Subject: [luxor-xul-develop] Using css to set font props in Swing app > > > I'm developing an XUL-based Swing app around a framework that loosely > couples actions to xul components. The goal of my project is to easily > create rich, scriptable installation packages. > > 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? > > Thanks, > Dale Asberry > > > > ------------------------------------------------------- > 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 > _______________________________________________ > luxor-xul-develop mailing list > lux...@li... > https://lists.sourceforge.net/lists/listinfo/luxor-xul-develop > |
From: Gerald B. <ge...@va...> - 2003-12-23 23:19:44
|
Hello Dale, > I just realized after looking at the samples, that > font styles are selected > using the "font: 15 italic" format. I apologize for > not investigating this > before asking the list. No worries. The Luxor XUL documentation is unfortunately far from complete. - Gerald |
From: Gerald B. <ge...@va...> - 2003-12-23 16:17:34
|
Hi Dale, > I'm developing an XUL-based Swing app around a > framework that loosely > couples actions to xul components. The goal of my > project is to easily > create rich, scriptable installation packages. > > 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? 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. - Gerald |
From: R. D. A. <lux...@da...> - 2003-12-23 17:48:54
|
> 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 |
From: Gerald B. <ge...@va...> - 2003-12-23 23:17:44
|
Hello Dale, >> 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. Thanks for the example. As you already found out Luxor currently supports only the all-in-one font property. > 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! Whow. That sounds fantastic. I can't wait to see it. I will do all I can to promote it. I invite you to keep us up-to-date. I also invite you to zip up your sources and send them to my private email address (that is, ge...@va...) and I'll add your package to luxor-contrib right away and start promoting it. > Would you object to Installux for > the project name > considering the closeness to Luxor? No, go ahead. Since your project is open source you have my full support. You might also consider naming it Install Luxe or Installer DeLuxe or similar. Keep it up. Great stuff. - Gerald |