Grid Layout in Java Swing- Arranging objects in a panel/frame

Published: 24 December 2010
on channel: MrJavaHelp
147,329
545

This video shows you how to arrange objects and components (buttons, labels) in a panel within a frame in Java Swing without a visual editor, using GridLayout.

A previous video of mine did this using GridBagLayout, but often, using GridLayout is faster and can get the same thing accomplished. This video shows an example of this and adds 12 labels/buttons to a frame using GridLayout, which divides the frame into 12 equal rectangular cells with 3 rows and 4 columns.

Let me know if you have any questions or need any help with the concepts covered in the video.


On this page of the site you can watch the video online Grid Layout in Java Swing- Arranging objects in a panel/frame with a duration of hours minute second in good quality, which was uploaded by the user MrJavaHelp 24 December 2010, share the link with friends and acquaintances, this video has already been watched 147,329 times on youtube and it was liked by 545 viewers. Enjoy your viewing!