Get the book!
The best Java IDE

CSS Support coming for JMatter

Posted by Eitan Suez Thu, 05 Apr 2007 20:33:00 GMT

I believe I have on my hands a decent implementation of a subset of the CSS standard for Swing, and I've started integrating it into JMatter.

The integration is checked in to the JMatter subversion trunk.

In fact, I just finished documenting the feature. You'll find a new chapter (14) both in the online browsable html version of the documentation and the online version of the PDF (see here).

I plan to cut a new release of JMatter over the coming days. If you happen to be working against svn trunk, please play around with this if you have a chance and send me feedback.

I'm personally quite excited about this. I believe that CSS significantly simplifies styling and tweaking a swing UI, without having to touch the code. Also, it reuses knowledge that we already have.

Again, all the details are in the documentation, and please don't hesitate to post your questions to the mailing list.

Thanks, / eitan

2 comments

Comments

  1. Tom Palmer said 2 days later:

    Sounds great. Any chance for a standalone Swing CSS library? Seems like that would be usable in lots of settings.

  2. eitan said 2 days later:

    what i've built *is* a standalone css library for swing. there's nothing jmatter-specific. in the jmatter distribution you'll see css4swing.jar. all you need is that jar + the antlr3 jar file.

    in your app, before you start building the gui, just make a call to CSSEngine.initialize(). the rest is documented in the jmatter guide (chapter 14 i believe).

    i haven't yet had the time to think about what i should do with css4swing: whether or not i should open-source this project.. but help yourself to the binary.

Comments are disabled

Powered