Category Archive for "Swing"

The Use of Multiple JFrames: Good or Bad Practice?

In Java Swing, JFrame is a top-level container that represents a window with a title bar and border. It provides the framework for building graphical user interfaces (GUIs) in Java...

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...