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.
Questions tagged [swingbuilder]
89 questions
0
votes
1 answer
GridBagLayout keeps resizing when entering text in text field
I have a problem getting a GridBagLayout in groovy with SwingBuilder to run. I guess the problem is GridBagLayout and not Groovy, so I assume this would work the same in Java.
I have the following simple layout:
new SwingBuilder().edt {
…

Tim Roes
- 1,406
- 1
- 12
- 22
0
votes
2 answers
Jtable requestFocusInWindow fails on second call
I have a Jtable setup with Groovy SwingBuilder, and I'm trying to keep an empty row in the table so users can continue to add new values. After the empty row (single column) is filled in, I immediately add a new row, edit the cell of that new row,…

Skeeterdrums
- 460
- 1
- 6
- 13
0
votes
2 answers
Swing - how to add a band of color on application window
I am very new to using swing for java development, and only had experience with coding in java and never creating a GUI. Done some reading and made a decision to go with Swing.
Now i need to setup my application window, i would like the window to…

Gillardo
- 9,518
- 18
- 73
- 141
0
votes
1 answer
Importing Eclipse-generated GUI forms in to IntelliJ
I have a Java GUI application (Swing) that I built using Eclipse's designer. Most forms use Group layout, with the layouts/controls stuff written directly in the class constructor.
I have downloaded IntelliJ for evaluation, and succesfully imported…

Stealth Rabbi
- 10,156
- 22
- 100
- 176
0
votes
0 answers
Disable button and display message in text field at end of ArrayList iterations
I am writing a quiz program that opens a text file containing questions and answers. The questions and answers are put into arrays and are put into text fields on button clicks. Opening the file enables the Q button.
A counter at the bottom of the…

MistyDawn
- 856
- 8
- 9
0
votes
3 answers
Jcalender in Swing Java
// I am creating customize jcalender in swing
//I am facing problem regarding dates set
//i.e actual month is start from tuesday and it is starting from wednesday
// I am finding problem regarding setting values in calender-model
//Above code is…

Dharam Chag
- 169
- 1
- 2
- 13
0
votes
1 answer
How to use FEST tests with Groovy's GMock framework
I'm trying to use FEST swing test suite to write test for different interface responses. In single class situations it works very well. However, now I have a situation where I have am using GMockTestCase. I set up all the mocked method calls with…

TroyB
- 195
- 1
- 14
0
votes
1 answer
Griffon View Script Generated from NetBeans Not Showing
I developed a UI in NetBeans that I want to use in my Griffon application. I chose to do so because I don't have enough time to figure out how to get the screen laid out correctly using SwingBuilder. According to the book Griffon in Action, I…

Stuporman
- 773
- 6
- 26
-1
votes
1 answer
java swing make Pagination Next/Prev , Next button Forword Record or Prev goback on button press
i am design swing desktop application for restaurant in which i need menu groups forward or go back required two button Next/Prev
just i make Next/Prev buttons that forward or go back this is not work correctly my code like a make pagination buttons…

Mayo-Soft
- 31
- 5
-1
votes
2 answers
access class members from main
i'm working with swing builder in java, the form:
but I can't access the components from main:
how can I get access to the form components?

roni
- 59
- 6
-1
votes
1 answer
how to add swing components that abide to screen resolution
How to write an swing application that abide to the screen resolution.
Ex: to add an component in panel , say Label label1,
I need the position of the label1 to be added in percentage .
I dont want JFrame -> JScrollPane -> JComponents.
This is a…

ShrutiEklaspur
- 31
- 7
-2
votes
1 answer
NullPointerException related to hidden Swing GUI elements
https://github.com/carlb710/myProgram
I'm using IntelliJ Swing GUI editor to make the front-end of my program. Based on the int value returned by a spinner, certain elements of the GUI are shown or hidden. Every time I change that int value and…

carlb710
- 29
- 6
-2
votes
1 answer
Switching Between JFrames
I Am Creating A student database Project in Java Swing . Now i have created many JFrames . Such as if i want to add a new student a new frame will appear which will have some textfields and button , now i want to make disappear the last JFrame . I…

CodeHead
- 177
- 1
- 2
- 12
-3
votes
2 answers
Where is the code for combo box plus check box in adempiere multiwindow?
Where is the code for combo box plus check box in adempiere multiwindow?
View the picture in the link. Where is the code for this in adempiere classes?
I have already checked on APanel, VPanel, CPanel, AWindow, CTable, GridController, VInOutGen,…

Antony Joslin
- 309
- 4
- 17