id
(frame (:id foo) foo) ==> #<javax.swing.JFrame ...frame.toString()... {identityHashCode}> (let (bar) (label :id bar) bar) ==> #<javax.swing.JLabel ...label.toString()... {identityHashCode}>
layout-manager
(panel (:layout-manager '(:box :y)) (label :text "First Line") (label :text "Second Line"))
layout
(panel () (label :layout "grow, wrap" :text "hello") (label :text "world"))
enabled-p
size
(frame (:size #C(800 600)))
label
(let (lbl) (label :id lbl :text "User Name: ") (text-field :label lbl))Or, shorter, using an inline label:
(text-field :label (label :text "User Name: "))
Name | Description | C | Examples | Notes |
---|---|---|---|---|
button |
A button with text on it. | (button :text "Ok!") |
||
check-box |
A checkbox with optional text. | (check-box :text "Enabled") |
||
frame |
A top-level window. | Y | (frame (:title "A frame" :on-close :exit) (label :text "push") (button :text "this!")) |
|
label |
Read-only text. | (label :text "Hello") |
||
list-widget |
Displays a list of strings. | (list-widget :model (make-cons-list-model '("foo" "bar" "baz"))) |
Not named list to avoid clashing with the commonly used function by the same name in the COMMON-LISP package. | |
panel |
A generic container for other components. | Y | (panel () (label :text "push") (button :text "this!")) |
|
scroll |
A container for a single child, providing scrollbar support. | Y | (scroll () (text-area :text "very, very, ..., long text")) |
|
text-area |
Allows the user to enter multiple lines of text. | (text-area :text "type something here") |
||
text-field |
Allows the user to enter a single line of text. | (text-field :text "type something here") |
||
tree |
Displays hierarchical data in the form of a tree with expandable/collapsible nodes. | (tree :model (make-cons-tree-model '("foo" ("bar" "baz")))) |
:text
:on-action