Category Archive for "Layout Manager"

How to add JTable in JPanel with null layout?

If you are working with Java Swing and you want to add a JTable to a JPanel with a null layout, there are a few steps you need to follow. In this article, we'll explore how to achi...

Should I avoid the use of set(Preferred|Maximum|Minimum) size methods in Java Swing?

When working with Java Swing components, there is often a need to define proportions between the displayed components. One common approach is to use the setPreferredSize(), setMini...

Providing white space in a Swing GUI

A GUI with no white space appears 'crowded'. How can I provide white space without resorting to explicitly setting the position or size of components? Introduction White space, a...