Top "Swing" questions

Swing is the primary user-interface toolkit in Java and is shipped with the standard Java SDK.

How to add an image to a JPanel?

I have a JPanel to which I'd like to add JPEG and PNG images that I generate on the fly. …

java image swing jpanel
Java GUI frameworks. What to choose? Swing, SWT, AWT, SwingX, JGoodies, JavaFX, Apache Pivot?

There is quite a lot of gui frameworks out there for java, but what is recognized as today's framework of …

java swing user-interface swt awt
Popup Message boxes

I am unsure of how to code popup message box in my methods. public String verify(){ String result = "failed"; int …

java swing netbeans
How to programmatically close a JFrame

What's the correct way to get a JFrame to close, the same as if the user had hit the X …

java swing jframe
How to present a simple alert message in java?

Coming from .NET i am so used calling Alert() in desktop apps. However in this java desktop app, I just …

java swing joptionpane
Best GUI designer for eclipse?

I'm looking for a good GUI designer for swing in eclipse. My preference is for a free/open-source plugin.

java eclipse swing gui-designer
Setting background color for a JFrame

Just how do you set the background color for a JFrame?

java swing graphics awt
Value Change Listener to JTextField

I want the message box to appear immediately after the user changes the value in the textfield. Currently, I need …

java swing listener jtextfield documentlistener
JTable How to refresh table model after insert delete or update the data.

This is my jTable private JTable getJTable() { String[] colName = { "Name", "Email", "Contact No. 1", "Contact No. 2", "Group", "" }; if (jTable == null) { jTable = …

java swing refresh jtable tablemodel
JComboBox Selection Change Listener?

I'm trying to get an event to fire whenever a choice is made from a JComboBox. The problem I'm having …

java swing jcombobox itemlistener