Showing posts with label LayoutManager. Show all posts
Showing posts with label LayoutManager. Show all posts

Tuesday, August 7, 2012

FlowLayout


"FlowLayout (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)" ( http://bit.ly/MZHggI )

Monday, May 7, 2012

Layout Managers

"A Visual Guide to Layout Managers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)" ( http://bit.ly/LpAHle )

Saturday, May 5, 2012

GridLayout



From
http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/GridLayout.html :

The GridLayout class is a layout manager that lays out a container's components in a rectangular grid. The container is divided into equal-sized rectangles, and one component is placed in each rectangle. For example, the following is an applet that lays out six buttons into three rows and two columns:


Often used to compose the layout of a Jpanel. Its constructor takes 2 parameters - number of rows in the grid and number of columns in the grid.