Link Details

Link 80754 thumbnail
User 279483 avatar

By Cba
via tk-ui.sourceforge.net
Published: May 13 2008 / 17:05

CSS implementation for java.
  • 11
  • 1
  • 2010
  • 817

Comments

Add your comment
User 111696 avatar

bloid replied ago:

0 votes Vote down Vote up Reply

link changed to point to actual resource

User 190346 avatar

ilazarte replied ago:

0 votes Vote down Vote up Reply

This is a realllly cool lib by the looks of it. I'm waiting for an excuse to use SWT and I'll grab this when I do...

User 251548 avatar

Jawher replied ago:

0 votes Vote down Vote up Reply

Actually, the description is not accurate:
This is a library which enables you to use CSS stylesheets (CSS2 for now and work on CSS3 is on progress) to prettify your Swing or SWT apps, instead of zillions of boilerplate code.
For example, instead of something like:


label.setColor(new Color(70, 80, 90);
label.setBorder(...);
label.addMouseListner(.bla bla bla on hover, set border to red ....)

you can simply do:

.label {
color: #708090;
border: solid 1px black;
}

.label:hover {
color: #FF0000;
}

User 152955 avatar

Gregg Bolinger replied ago:

0 votes Vote down Vote up Reply

Its a nice idea in concept but the existing implemented columns have way too may No's right now. Also, I don't think there is enough CSS to SWT/Swing conversions to make it truly viable. I've not run into too many situations where I really care about the background color or Font of a widget.

Not to mention that if I really wanted to do this it is just as easy with the UIManager to set things globally. The true power my lie in being able to use CSS's powerful query abilities to apply conditional styles.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (1)