Complex Layouts

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

FlowLayout, BorderLayout, BoxLayout, GridLayout, GridBagLayout, GroupLayout, SpringLayout, CardLayout

Swing Layouts

2
New cards

FlowLayout

arranges components in a line, one after another; default layout

3
New cards

FlowLayout()

FlowLayout, centered, with horizontal and vertical gap of 5

4
New cards

FlowLayout(int align)

Flow layout, with horizontal and vertical group of 5, can be left, right, center, leading or trailing

5
New cards

FlowLayout(int align, int hgap, int vgap)

no specific horizontal and vertical gap, can be left, right, center, leading or trailing

6
New cards

BorderLayout

Arranges components in 5 regions: North, South, East, West, Center

7
New cards

FlowLayout

default layout of applet or panel

8
New cards

BorderLayout()

creates border layout with 0 gaps

9
New cards

BorderLayout(int hgap, int vgap)

creates border layout with the given horizontal and vertical gaps between components

10
New cards

Left, Right, Center, Leading, Trailing

values for align in flowlayout

11
New cards

BoxLayout

Arranges components either vertically or horizontally

12
New cards

BoxLayout(Container c, int axis)

arranges components in the container with the given axis

13
New cards

X_AXIS, Y_AXIS, LINE_AXIS, PAGE_AXIS

values for axis in boxlayout

14
New cards

GridLayout

arrange components in a rectangular grid or a table

15
New cards

GridLayout()

creates grid layout with 1 column per component

16
New cards

GridLayout(int rows, int columns)

creates grid layout with the given number of rows and columns and with 0 gaps

17
New cards

GridLayout(int rows, int columns, int hgap, int vgap)

creates grid layout with the given number of rows and columns, and with given horizontal and vertical gaps

18
New cards

GridBagLayout

Aligns components vertically, horizontally or along their baseline

19
New cards

GridBagConstraints

occupy one or more cells known as its display area

20
New cards

JPanel

considered as a swing compoent and the simplest container class

21
New cards

BorderPane, FlowPane, GridPane, HBox, VBox, Pane, StackPane

JavaFX Layouts