swingbuilder

Can anyone point me at some examples of Groovy's closureColumn for SwingBuilder Tables?

I'm working on some GUI code in Groovy using SwingBuilder. One of the elements on the screen is a JTable that's being used, essentially, as a properties editor. Groovy in Action has a fantastic example of how to do a display-only table, with what amounts to a side note that you can also attach a write closure. GiA's example is pretty ...

groovy swingbuilder bindable list and tables

Is there a way to bind data to a list and/or a table using the groovy swing builder bind syntax? I could only find simple examples that bind simple properties like strings and numbers to a text field, label, or button text. thanks, Jeff ...

populate a comboBox in Griffon App dynamically

I have 2 comboBoxes in my View of Griffon App (or groovy swingBuilder) country = comboBox(items:country(), selectedItem: bind(target:model, 'country', value:model.country), actionPerformed: controller.getStates) state = comboBox(items:bind(source:model, sourceProperty:'states'), selectedItem: bind(targe...

Swingbuilder - application location centering

I am creating an application using Griffon->SwingBuilder. I would like to able to center the application on the desktop. I know we have the 'location: [x,y]' argument we can provide on application creation. Is there anyway to access desktop properties to calculate the center? ...

How to add JComboBox to a specific cell in the JTable

I want to change defaultCellEditor to JComboBox only when a specific cell in a table is selected. ...

How to add a header to a Groovy SwingBuilder table?

How do I add a header to the table defined below? import groovy.swing.SwingBuilder data = [[first:'qwer', last:'asdf'], [first:'zxcv', last:'tyui'], [first:'ghjk', last:'bnm']] swing = new SwingBuilder() frame = swing.frame(title:'table test'){ table { tableModel( list : data ) { propertyColumn(...

Is it ok if i start making swing apps using Netbeans GUI builder?

I learnt swing basics and event handling basics from head first java... Then i read a few tutorials on swing app development using netbeans... and i loved it as i don't have to care about layouts and stuff... But i read in one of the forums, that i should learn swings properly rather than using netbeans directly... This confused me a...

Griffon integration test or script that displays a griffon View

When I create plane java Swing components like dialog boxes etc, it is very easy to make a unit test to display the Dialog. Basically, I can just create an instance of the dialog and call setIsVisible(true). I'm having a really tough time figuring out how to do this with a griffon View. I've been trying to do this with integration tes...

SpringLayout in Groovy using SwingBuilder

Does anyone have an example of how the Java SpringLayout Layout Manager works with Groovy's SwingBuilder class? SpringLayout handles constraints a bit differently from the other layout managers, so I can't quite figure out how to make it work. Any thoughts, examples, tutorials would be much appreciated! Thanks! ...

SwingBuilder like GUI syntax for Java?

Is there a library that makes it possible to write Swing based GUIs similar to the manner done by SwingBuilder in Groovy? I am hoping to develop a Java GUI application without embedding Groovy or another complete programming language in Java, and I find the standard Java syntax rather tedious. ...