Java swing GUI tutorial #17: GridLayout

Publicado em: 25 Fevereiro 2013
no canal de: Lazic B.
56,555
168

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: https://github.com/BranislavLazic/Swi...


Nesta página do site você pode assistir ao vídeo on-line Java swing GUI tutorial #17: GridLayout duração 05 minuto 33 segundo em boa qualidade , que foi baixado pelo usuário Lazic B. 25 Fevereiro 2013, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 56,555 vezes e gostou 168 espectadores. Boa visualização!