CATEGORY1

Category Archives: Swing

Java Swing

Simple Pie Chart in Java Swing

Update ! This pie chart compoment has now been moved into the Iceberg Charts project . Please use Iceberg Charts for a more complete charting experience. I know there are a lot of Swing charting software libraries out there (JFreechart … Continue reading


Posted in Swing, Swing Components | Tagged , , , | 17 Comments

GridBagLayout Tutorial

This tutorial shows you how to construct a complex Java Swing GUI using the GridBagLayout. Let’s assume you have received a protoype sketch of how an application screen should look like, which you have been assigned to create : It … Continue reading


Posted in Swing, Tutorial | Tagged , , , , | 21 Comments

Advanced Swing Multithreading Tutorial

A lot of Swing tutorials on the internet focus on SwingWorkers and dealing with a single thread running concurrently to the Event Dispatch Thread (EDT). This tutorial is going to look at some more tricky techniques and traps that one … Continue reading


Posted in Swing, Tutorial | Tagged , , , , , , , | 3 Comments

Swing Textfield/TextArea Collapse on Dialog Resize

You might be working with Swing’s GridBagLayout and feel a little like … this guy because you see something like this : when all you wanted was this: This is because you are adding text to JTextArea. This causes a … Continue reading


Posted in Swing | Tagged , , , , , , | 1 Comment

Swing : Table Row Displayer in Dialog

Tables are great for displaying a matrix of information, however they show their limitations when they are showing a lot of columns, or they have columns displaying large amounts of text. For example : A lot of applications I have … Continue reading


Posted in Swing, Swing Components | Tagged , , , , , , , , | 4 Comments

Swing Filtered Tree Just Like in Eclipse

Eclipse has a pretty nice widget. It’s basically a tree with a text field above it. As you type in the text field, the tree gets filtered. I built one in Swing. Continue reading


Posted in Swing, Swing Components | Tagged , , , , , , , | 3 Comments

Expandable Text Area in Swing

Using this wonderful thing called WordPress, I noticed that in the post edit screen there is a really neat widget that I had never seen before. It’s basically a text area which is expandable via dragging a small triangle in … Continue reading


Posted in Swing, Swing Components | Tagged , , , , | 3 Comments

Java Swing Accordion Widget

Update !!! Please visit the latest update to this component : New Accordian Widget . It has been greatly improved. I thought I would share an expandable Swing Sidebar of mine (also known to some as ‘floor tabbed pane’ or … Continue reading


Posted in Swing, Swing Components | Tagged , , , , , , , | 2 Comments