<<< How to repaint the window | Index | Layout Manager, cont >>> |
Layout manager is a class that controls size and position of components inside a Container object
Examples:
BorderLayout
Normal (default) behavior of a JFrame :
JLabel myLabel; frame.getContentPane().add( myLabel, BorderLayout.CENTER );
Divides a container into regions
FlowLayout
places components in a row
<<< How to repaint the window | Index | Layout Manager, cont >>> |