Home  >  Article  >  类库下载  >  User interface layout in Java

User interface layout in Java

高洛峰
高洛峰Original
2016-10-13 09:54:351892browse

Absolute layout Absolute

When the interface is enlarged or reduced, the size and position of the components will not change

Floating layout FlowLayout

When the application window is resized, the components will be rearranged immediately

User interface layout in Java

Border layout Border Layout

 This position has 5 directions: east, south, west, north, middle

User interface layout in Java

Grid Layout Grid Layout

If a large number of components need to be arranged regularly, then grid layout is the most suitable. For example, the production of calculator interface.

User interface layout in Java

User interface layout in Java

  CardLayout
  Card layout is different from other layouts because it hides some components. A card layout is a group of containers or components that only appear one at a time. Each container in the group is called a card.

User interface layout in Java

Group Layout Group Layout

Group layout is one of the most complex layout managers in Swing and can be used to achieve most component layout requirements.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn