Questions tagged [swingbuilder]

Swing Builder helps you create Swing GUI in a declarative and concise fashion. Like other Groovy builders, it uses tree based declarative syntax to create objects, handles the busywork of creating complex objects for you, such as instantiating children, calling Swing methods, and attaching these children to their parents.

A slightly old introduction

2008 JavaOne talk

Andres Almiray articles

89 questions
8
votes
2 answers

Groovy SwingBuilder() apple.awt.CToolkit exception

I am using newest Mac OS X and I am creating a GUI element inside a Gradle file. I am currently using jdk1.7.0_55 and I have imported groovy.swing.SwingBuilder, when I run the project I am getting the following error: java.awt.AWTError: "Toolkit…
ahmad
  • 2,149
  • 4
  • 21
  • 38
4
votes
1 answer

Groovy swingbuilder documentation and examples

I recently discovered for myself the groovy language and the tiny little example of using Swingbuilder on groovy's website. But I faced the great lack of documentation or examples. They're all too simple and too similar. I've been googling a lot to…
4
votes
4 answers

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…
shahensha
  • 2,051
  • 4
  • 29
  • 41
4
votes
3 answers

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.
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
4
votes
1 answer

Java Swing - Refresh jTable using Timer

I have 2 simple database query JTable (Client and Server). Client has all functions like view records, print, save PDF etc. Server auto refresh database records to table with a timer of 30secs. (Not yet implemented.) My problem is I can display the…
user1815586
  • 93
  • 1
  • 5
  • 12
3
votes
2 answers

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 =…
Matt
  • 682
  • 5
  • 20
3
votes
2 answers

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…
Amoeba
  • 631
  • 7
  • 15
3
votes
1 answer

How to dynamically add a button group to panel after panel is built

I am using Groovy Swingbuilder, and I want to dynamically fill a radio button - buttongroup after the initial panel has been built. Example: I have a panel that has a few options. Based on which option is selected I need to fill the button group…
TroyB
  • 195
  • 1
  • 14
2
votes
3 answers

adding a custom subclass of JSplitPane in SwingBuilder using container() causes IllegalArgumentException

I'm new to groovy and griffon and currently playing around a little bit with SwingBuilder. I would like to add a subclass of JSplitPane (which uses a thin divider as described at…
Dieter Rehbein
  • 941
  • 8
  • 16
2
votes
1 answer

How to fix java application dimensions when switching the jre from 8u201 to 8u211?

So i'm working on this java swing application that is currently running on Java 8 update 192. It works fine on this update but when I upgrade the java version to 8 update 211, it seems to change the UI of the application so everything seems so much…
ZaneK
  • 301
  • 2
  • 14
2
votes
1 answer

Groovy SwingBuilder : using a scrollpanel to show a list of panels

I would like to show a list of panels containing components, i.e a checkbox, labels, buttons, all on the same horizontal line; each panel represents one set of components to display information for one item. I need to put the list of panels (number…
2
votes
1 answer

Groovy SwingBuilder : button to change the color of a panel

Why does this code fail ? I want to change the color of one panel in a series of several panels, dynamically constructed (total number of panels not known beforehand). For some reason, this code works when referencing the name of a particular panel…
2
votes
0 answers

Groovy SwingBuilder Tree documentation or complete example

I am trying to display hierarchy of Groovy objects using SwingBuilder. I have spent many hours using Google to find some reasonable SwingBuilder documentation on this or some example, without success... This is small fragment of my code: def…
jirka
  • 41
  • 5
2
votes
2 answers

How can I customize the color of the tabbedPane at swing builder?

I want to customize the color of my tabbedPane to fit at the theme of my gui, but I don't know how to do it. I've tried lots of code but still nothing happens. Here's my gui... thnx in advance ^_^
iamanapprentice
  • 411
  • 5
  • 19
  • 37
2
votes
2 answers

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…
Muhammad Alkarouri
  • 23,884
  • 19
  • 66
  • 101
1
2 3 4 5 6