GridLayout manager arranges components in a matrix/grid formation with the specified number of rows and columns. The components are arranged in the container from left to right in the first row until all the columns are occupied. It then starts with the next row and so on.
With GridLayout, if you resize the frame, the layout remains unchanged.
Exercise: Write a program that demonstrates GridLayout.
Download Code: Grid Layout
No comments:
Post a Comment