HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Java swing GUI tutorial #17: GridLayout

56,600 views November 5, 2013 5:33

Watch on YouTube
ChannelLazic B.

Description from the creator

In this tutorial I'll explain how to use GridLayout. And when it comes to using layout managers (not just GridLayout):

- DO NOT call setMinimumSize(), setMaximumSize() or setPreferredSize() methods for components within containers. Let some other factors to determine size of your component (like size of font or size of icon);

- Avoid calling setSize() method for top level standalone containers, like JFrame, call pack() instead, so the size of your JFrame will be equal to its preferred size, which is determined by size of components within your JFrame;

If you have any question, leave it in comment section below.
Source codes available here: github.com/BranislavLazic/SwingTutorials

About this tutorial

Lazic B. published this 5:33 video tutorial on November 5, 2013. It has been watched 56,600 times on YouTube.

Channel
Lazic B.
Category
Education
Duration
5:33
Published
November 5, 2013
Views
56,600
Likes
168

Tags

Share

This tutorial in other languages