The FlowLayout Manager

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page

Answer:

Before.

The FlowLayout Manager

Our program uses the FlowLayout manager. The FlowLayout manager puts components into the frame row by row in the order they are added. (Later on we will add more than one component). It also picks reasonable sizes for components.

FlowLayout order

The FlowLayout manager is part of the java.awt package.

QUESTION 6:

Will the layout of a frame change if you add components to it in a different order?