forms (desktop)

Contains functions for working with forms

Constants

BorderLayout : map =

13 elements
{
  AFTER_LINE_ENDS=After,
  LINE_END=After,
  LINE_START=Before,
  BEFORE_LINE_BEGINS=Before,
  CENTER=Center,
  EAST=East,
  BEFORE_FIRST_LINE=First,
  PAGE_START=First,
  AFTER_LAST_LINE=Last,
  PAGE_END=Last,
  NORTH=North,
  SOUTH=South,
  WEST=West
}

BoxLayout : map = {X_AXIS=0, Y_AXIS=1, LINE_AXIS=2, PAGE_AXIS=3}

DISPOSE_ON_CLOSE : number = 2

DO_NOTHING_ON_CLOSE : number = 0

EXIT_ON_CLOSE : number = 3

HIDE_ON_CLOSE : number = 1

SwingConstants : map =

19 elements
{
  BOTTOM=3,
  CENTER=0,
  EAST=3,
  HORIZONTAL=0,
  LEADING=10,
  LEFT=2,
  NEXT=12,
  NORTH=1,
  NORTH_EAST=2,
  NORTH_WEST=8,
  PREVIOUS=13,
  RIGHT=4,
  SOUTH=5,
  SOUTH_EAST=4,
  SOUTH_WEST=6,
  TOP=1,
  TRAILING=11,
  VERTICAL=1,
  WEST=7
}

Functions

borderLayout(hgap = 0, vgap = 0) — creates BorderLayout

boxLayout(panel, axis = BoxLayout.PAGE_AXIS) — creates BoxLayout

cardLayout(hgap = 0, vgap = 0) — creates CardLayout

flowLayout(align = FlowLayout.CENTER, hgap = 5, vgap = 5) — creates FlowLayout

gridLayout(rows = 1, cols = 0, hgap = 0, vgap = 0) — creates GridLayout

newButton(text = "") — creates new button

newLabel(text = "", align = SwingConstants.LEADING) — creates new label

newPanel(layoutManager = ...) — creates new panel with optional layout manager

newProgressBar(isVertical = false, min = 0, max = 100) 1.5.0 — creates new progress bar

newScrollPane(view, verticalPolicy = AS_NEEDED, horizontalPolicy = AS_NEEDED) 1.5.0 — creates new scroll pane

newTextArea(text = "") 1.5.0 — creates new text area

newTextField(text = "", rows = 0, cols = 0) — creates new text field

newWindow(title = "") — creates new window and returns JFrameValue