Back Previous Next


Linguist window package - create

Syntax:

   create {window}
      [style plain]
      [title {string}]
      [at {left} {top}]
      [size {width} {height}]
      [resizable]
   create {panel} [at {left} {top}] [size {width} {height}]
      [layout border/grid {rows} {cols}]
   create {label} {text}
   create {button} {name}
   create {list}
   create {textfield} [at {left} {top}] [size {width} {height}]
      [columns {cols}]
   create {textarea} [at {left} {top}] [size {width} {height}]
      [rows {rows} columns {cols}]
   create {tooltip} in {window}

Keyword handler:

   linguist.window.keyword.WKCreate.class

Runtime handler(s):

   linguist.window.handler.WHCreate.class

Function:

Create a window, panel, button, label, list, textfield, textarea or tooltip. Various commands then act on these components to encapsulate the underlying Java functionality. See also place and set.

Example(s):

   create MyWindow plain size 640 480	! creates an AWT Window (no frame)
   create MovieWindow at 100 100 size 320 240
      title "Movie window"
   create SizableWindow at 100 100 size 320 240 resizable
   create ButtonPanel size 300 200
   create OKButton "OK"
   create FileList
   create create Display at 2 10 size 100 24


Back Previous Next