1 / 7

Vortrag: Layoutmanager

Vortrag: Layoutmanager. Inhalt:. BorderLayout BoxLayout FlowLayout GridLayout GridBagLayout SpringLayout. Dazu jeweils: Erklärung, Beispiel Eigenschaften. BorderLayout. Eigenschaften: IDs der Komponenten für die fünf Bereiche (north, south, east, west, center)

sadie
Download Presentation

Vortrag: Layoutmanager

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Vortrag: Layoutmanager • Inhalt: • BorderLayout • BoxLayout • FlowLayout • GridLayout • GridBagLayout • SpringLayout • Dazu jeweils: • Erklärung, Beispiel • Eigenschaften Vorstellung von LayoutManagern Martin Gruhn

  2. BorderLayout • Eigenschaften: • IDs der Komponenten für die fünf Bereiche (north, south, east, west, center) • horizontale und vertikale Abstände der Komponenten zueinander (hgap, vgap) Vorstellung von LayoutManagern Martin Gruhn

  3. BoxLayout • Eigenschaften: • IDs der Komponenten • Ausrichtung des Layouts (X_AXIS, Y_AXIS) • Zu jeder Komponente: • Ausrichtung (z.B. align: left/center/right) Vorstellung von LayoutManagern Martin Gruhn

  4. FlowLayout • Eigenschaften: • IDs der Komponenten • Ausrichtung (align: left/center/right) • horizontale und vertikale Abstände der Komponenten zueinander (hgap, vgap) Vorstellung von LayoutManagern Martin Gruhn

  5. GridLayout • Eigenschaften: • IDs der Komponenten • Anzahl der Zeilen und Spalten (columns, rows) • horizontale und vertikale Abstände der Komponenten zueinander (hgap, vgap) Vorstellung von LayoutManagern Martin Gruhn

  6. GridBagLayout • Eigenschaften: • IDs der Komponenten • Constraints zu jeder Komponente: • linke obere Ecke (gridx, gridy) • Ausdehnung (gridwidth, gridheight) • Verhalten bei Skalierung • Rand: links, rechts, oben, unten (insets) • minimale Höhe und Breite (ipadx, ipady) • Verhalten bei überschüssigem Platz (weightx, weighty) Vorstellung von LayoutManagern Martin Gruhn

  7. SpringLayout • Eigenschaften: • IDs der Komponenten • Verknüpfung der Komponenten (welche Kanten liegen mit welchem Abstand aneinander) • Zu jeder Komponente: • Abstand zur angrenzenden Komponente (north, east, south, west) Vorstellung von LayoutManagern Martin Gruhn

More Related