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
1
vote
2 answers

In what case is Groovy SwingBuilder superior?

I know a little bit about Groovy: Some of the ways syntax is more concise How closures can be useful in replacing Java anonymous inner classes. How builders can make tree construction easier With all of this, I expected it to be apparent how…
orbfish
  • 7,381
  • 14
  • 58
  • 75
1
vote
1 answer

Getting my scrollPane to scroll under programatic control

I have a Groovy app which uses a scrollPane built via swing builder: BinsicWindow(def controller) { controlObject = controller swinger = new SwingBuilder() mainFrame = swinger.frame( title: "Binsic is not Sinclair Instruction…
adrianmcmenamin
  • 1,081
  • 1
  • 15
  • 44
0
votes
1 answer

Return a value from swingbuilder

How do I get a value returned as opposed to println which I can not read, in the following script? I am using Groovy inside Filemaker so need an explicit return 'answer' i.e. the password or a TRUE, and I do not seem to understand how to make the…
john renfrew
  • 393
  • 1
  • 9
  • 30
0
votes
3 answers

Visual Java Programming

Possible Duplicate: Drag and Drop Java GUI Hi about 3 months ago I started learning programming for the first time using Java as my first programming language and recently I started learning SWING and AWT for GUI.My aim is building a board game…
Nistor Alexandru
  • 5,309
  • 9
  • 46
  • 71
0
votes
0 answers

Troubleshooting Window Builder Issues in Eclipse: It's Not Working

When I try to add and then try to edit, it can't be. I have uninstalled and installed several times but it dosen't works. I have installed latest version all of it.
0
votes
0 answers

How can I use multiple classes in Model - MVC Java?

I am creating an app in Java and I am using the MVC architecture. I have the Model, View and Controller classes, and I have also another classes that help me with data. For example, I have the next classes: Product, Store, Manager. How can I use the…
Cornel
  • 23
  • 6
0
votes
1 answer

How can I implement thread synchronization in word count tool GUI-based project

How can I add thread synchronization to this piece of code? It's a GUI-based WordCount project This is my finals project and I need to apply the concept of thread synchronization in this application: I have tried some methods but none of them are…
0
votes
2 answers

JTextField to get integer input from user to add when clicked on JButton

I am to build a simple swing UI application to get input from user from separate JTextField and then finally click on a Button to perform addition to display on a JTextField below the JButton. The input field(JTextField) is to receive integer…
0
votes
1 answer

Use DefaultTableModel to color specific cell of the JTable based on their specific value

How to color a particular cell data or cell using defaulttablemodel concept? The array consist of string values. So if we have "1" in last row the cell should turn red and if '0" then green. Is that possible? I am using eclipse IDE If possible,…
0
votes
1 answer

Groovy SwingBuilder : changing size and/or font of tabs (in jTabbedpane)

I can't find any information on how to change the tabs size or the font of the names labels (on color, etc) Regards, Michel
0
votes
0 answers

Refreshing jTable From database

I have made a swing application with a jTable. The data is fetched from the database and shown in the table using the following function in the class constructor. public void Updatetable(){ try{ String query =…
Ibtsam Ch
  • 383
  • 1
  • 8
  • 22
0
votes
0 answers

Netbeans GUI is not creating properly

I am trying to create Swing GUI in netbeans. But when I run it, it does not work as I designed it. Somehow horizontally & vertically it's a little bit bigger than I designed. shown in image the bottom one is running & the top one is the design. I…
MrW01f
  • 9
  • 1
  • 3
0
votes
2 answers

Add or Remove JTextPane inside Jpanel onclick of JToggle Button

I have one JDialog in which there is one Main Jpanel called "dialogPane". This JPanel "dialogPane" has below 2 JPanels ContentPanel which contains JTextArea buttonBar which contains progress bar and one toggle button. Now my use case is On Click…
LearnerForLife
  • 147
  • 1
  • 12
0
votes
1 answer

how get all component name in groovy swingbuilder panel?

Im trying to get all component name when click a button in groovy panel but my command not get all component ; how i could correct this code in groovy I dont know how get all Please help me with this problem ; Im using getcomponent() command but…
mightguy
  • 175
  • 1
  • 8
0
votes
2 answers

Make background of TextArea opaque

I want to make my TextArea's background opaque. I'm using swing gui forms at netbeans. I want to overlap the instructions infront of the image (see this picture), but the problem is texts can't be seen if they are infront of the image. I really…
iamanapprentice
  • 411
  • 5
  • 19
  • 37