Tag Archives: gridbaglayout

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

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