Fri Dec 14 09:10:58 GMT 2007
From
/weblog/java/swing
frame (title:'Demo') {
menuBar {
menu('File') {
menuItem 'New'
menuItem 'Open'
}
}
panel {
label 'Label 1'
slider()
comboBox(items:['one','two','three'])
}
}
frame.show()
http://blogs.sun.com/geertjan/entry/how_cool_is_swing_in Example of using swing with groovy and CSS -
http://www.jroller.com/aalmiray/entry/css_swing_groovy_you_bet
(google search)
(amazon search)
Fri Mar 31 10:37:56 GMT 2006
From
/weblog/java/swing
Here is a nice article show a sample of using XML and CSS to build and style swing application.
http://weblogs.java.net[..]las/archive/2006/03/style_swing_com.html http://weblogs.java.net[..]rs/archives/2006/03/i_want_to_break.html However, there are some framework doing work in reverse direction, from markup to API call:
http://jakarta.apache.org/ecs/index.html I think it is hard to have an absolution better choice to do UI. However, I will have a feeling that using API call approach is likely to have better reusability. As we already build up a lot of OO pattern to help our design. What do you think?
[more info:
http://beust.com/weblog/archives/000377.html ]
(google search)
(amazon search)