Functions to create Java Swing user interfaces. See the Java AWT and Swing API references for details.
Functions to create Java Swing user interfaces. See the Java AWT and Swing API references for details.
Maps keywords to the constants in Action.
Maps keywords to the constants in Action.
(add-key-binding c binding-name stroke action)
(add-key-binding c focus-key binding-name stroke action)
Adds a key binding for an action to the input map of the component.
Adds a key binding for an action to the input map of the component.
(allows-invalid? c)
Checks whether the value being edited is allowed to be invalid for a length of time.
Checks whether the value being edited is allowed to be invalid for a length of time.
(button-group args items)
Creates a button group.
Creates a button group.
(canvas-panel paint-fn args items)
Creates a panel into which the paint function can paint using the provided graphics context.
Creates a panel into which the paint function can paint using the provided graphics context.
(card-layout args items)
Creates a card layout.
Creates a card layout.
(check-box)
(check-box args)
Creates a check box.
Creates a check box.
(checkbox-menu-item)
(checkbox-menu-item args)
Creates a check box menu item.
Creates a check box menu item.
(color-choose-dialog c title color)
Creates a color choose dialog.
Creates a color choose dialog.
(commit-edit c)
Sets the value to the object represented by the field's text, as determined by the field's formatter. If the text is invalid, the value remains the same and a ParseException is thrown.
Sets the value to the object represented by the field's text, as determined by the field's formatter. If the text is invalid, the value remains the same and a ParseException is thrown.
Maps keywords to the constants in JFormattedTextField.
Maps keywords to the constants in JFormattedTextField.
(confirm-dialog text title options)
(confirm-dialog text title options type)
(confirm-dialog text title options type icon)
Creates a confirm dialog.
Creates a confirm dialog.
(dialog args cp-items)
(dialog parent args cp-items)
Creates a dialog. If a frame is provided, the dialog is centered on the frame.
Creates a dialog. If a frame is provided, the dialog is centered on the frame.
(edit-valid? c)
Returns true if the formatter considers the current text to be valid, as determined by the field's formatter.
Returns true if the formatter considers the current text to be valid, as determined by the field's formatter.
(editable? c)
Checks whether the user can edit text component.
Checks whether the user can edit text component.
(editor-pane)
(editor-pane args)
Creates a editor pane.
Creates a editor pane.
(file-open-dialog filename)
Returns the filename to open or nil if the dialog was aborted.
Returns the filename to open or nil if the dialog was aborted.
(file-save-dialog filename)
Returns the filename to save or nil if the dialog was aborted.
Returns the filename to save or nil if the dialog was aborted.
Maps keywords to the constants in JFileChooser.
Maps keywords to the constants in JFileChooser.
(first-card cl container)
Shows the first card on the container.
Shows the first card on the container.
Maps keywords to the constants in JComponent.
Maps keywords to the constants in JComponent.
(formatted-text-field fmt)
(formatted-text-field fmt args)
Creates a text field.
Creates a text field.
(formatted-text-field-verifier)
Creates an input verifier for a formatted text field.
Creates an input verifier for a formatted text field.
(get-input-map c)
(get-input-map c k)
Returns the input map of the component.
Returns the input map of the component.
(get-integer field)
Returns the field value as an integer.
Returns the field value as an integer.
(get-number field)
Returns the field value as a number.
Returns the field value as a number.
(get-selection-model c)
Returns the selection model of the component (e.g. table or list).
Returns the selection model of the component (e.g. table or list).
(get-text c)
Returns the text component value as a string.
Returns the text component value as a string.
(hide-component c)
Hides the component by setting its visibility to false.
Hides the component by setting its visibility to false.
(horizontal-split-pane args items)
Creates a horizontal split pane.
Creates a horizontal split pane.
(image-icon url args)
Creates an image icon from the image data of the given URL.
Creates an image icon from the image data of the given URL.
(init-swing c args)
(init-swing c args items)
Intitializes a swing component with the arguments and items.
Intitializes a swing component with the arguments and items.
(input-dialog text)
(input-dialog text title)
(input-dialog text title type)
(input-dialog text title type icon values initial)
Creates an input dialog.
Creates an input dialog.
(input-verifier vf yf & args)
Creates an input verifier with the verify function 'vf' and the yield function 'yf'.
Creates an input verifier with the verify function 'vf' and the yield function 'yf'.
(installed-look-and-feels)
Returns the installed look anf feels as a sequence of maps from names to class names.
Returns the installed look anf feels as a sequence of maps from names to class names.
(integer-field)
(integer-field args)
Creates an integer field.
Creates an integer field.
(j-list)
(j-list args)
Creates a swing list component.
Creates a swing list component.
(j-tree)
(j-tree args)
Creates a swing tree component.
Creates a swing tree component.
(key-stroke keycode)
(key-stroke keycode & modifiers)
Returns the key stroke for the given key code and the modifiers if given.
Returns the key stroke for the given key code and the modifiers if given.
(last-card cl container)
Shows the last card on the container.
Shows the last card on the container.
(layered-pane args items)
Creates a layered pane.
Creates a layered pane.
Maps keywords to the constants in ListSelectionModel.
Maps keywords to the constants in ListSelectionModel.
(look-and-feel-available? lnf)
(look-and-feel-available? installed-lnfs lnf)
Checks the availability of the given look and feel by name.
Checks the availability of the given look and feel by name.
(mapseq-table-model col-spec data)
Creates a table model backed with a sequence of maps. The col-spec map may contain
Creates a table model backed with a sequence of maps. The col-spec map may contain
(mask-formatter s)
Creates a mask formatter for the given pattern.
Creates a mask formatter for the given pattern.
(message-dialog text)
(message-dialog text title type)
(message-dialog text title type icon)
Creates a message dialog.
Creates a message dialog.
Maps keywords to the constants in ActionEvent.
Maps keywords to the constants in ActionEvent.
(next-card cl container)
Shows the next card on the container.
Shows the next card on the container.
(number-field)
(number-field args)
Creates a number field.
Creates a number field.
(option-pane)
(option-pane args)
Creates an option pane dialog.
Creates an option pane dialog.
Maps keywords to the constants in JOptionsPane.
Maps keywords to the constants in JOptionsPane.
Maps keywords to the constants in JOptionsPane.
Maps keywords to the constants in JOptionsPane.
(password-field)
(password-field args)
Creates a password field.
Creates a password field.
(previous-card cl container)
Shows the previous card on the container.
Shows the previous card on the container.
(progress-bar)
(progress-bar args)
Creates a progress bar.
Creates a progress bar.
(radio-button)
(radio-button args)
Creates a radio button.
Creates a radio button.
(radio-button-menu-item)
(radio-button-menu-item args)
Creates a radio button menu item.
Creates a radio button menu item.
(scroll-pane item)
(scroll-pane item args)
Creates a scroll pane.
Creates a scroll pane.
(select-all c)
Selects all characters in the text component.
Selects all characters in the text component.
(separator)
(separator args)
Creates a separator.
Creates a separator.
(seq-list-model data)
Creates a list model backed with the 'data' sequence.
Creates a list model backed with the 'data' sequence.
(set-allows-invalid c value)
Sets whether the value being edited is allowed to be invalid for a length of time.
Sets whether the value being edited is allowed to be invalid for a length of time.
(set-editable c value)
Sets whether the user can edit the text component.
Sets whether the user can edit the text component.
(set-focus-lost-behaviour c value)
Specifies the outcome of a field losing the focus. Possible values are defined in JFormattedTextField as COMMIT_OR_REVERT (the default), COMMIT (commit if valid, otherwise leave everything the same), PERSIST (do nothing), and REVERT (change the text to reflect the value).
Specifies the outcome of a field losing the focus. Possible values are defined in JFormattedTextField as COMMIT_OR_REVERT (the default), COMMIT (commit if valid, otherwise leave everything the same), PERSIST (do nothing), and REVERT (change the text to reflect the value).
(set-look-and-feel frame lnf)
Sets the look and feel given by for the given frame (if it is available).
Sets the look and feel given by for the given frame (if it is available).
(set-selection-mode model mode)
Sets the selection mode.
Sets the selection mode.
(set-text c s)
Sets the text component value to 's'.
Sets the text component value to 's'.
(set-value c v)
Sets the formatted text field value to the formatted value 'v'.
Sets the formatted text field value to the formatted value 'v'.
(show-card cl container name)
Shows the card on the container with the given name.
Shows the card on the container with the given name.
(show-component c)
Shows the component by setting its visibility to true.
Shows the component by setting its visibility to true.
Maps keywords to the constants in SwingConstants.
Maps keywords to the constants in SwingConstants.
(tabbed-pane args items)
Creates a tabbed pane.
Creates a tabbed pane.
(table-cell-renderer rf args)
Creates a cell renderer with the render function 'rf'.
Creates a cell renderer with the render function 'rf'.
(text-area)
(text-area args)
Creates a text area.
Creates a text area.
(text-field)
(text-field args)
Creates a text field.
Creates a text field.
(text-pane)
(text-pane args)
Creates a text pane.
Creates a text pane.
(titled-border title)
Creates a titled border.
Creates a titled border.
(to-string fmt v)
Converts the given value v to a string using the given formatter.
Converts the given value v to a string using the given formatter.
(to-value fmt s)
Converts the given string s to a value using the given formatter.
Converts the given string s to a value using the given formatter.
(toggle-button)
(toggle-button args)
Creates a toggle button.
Creates a toggle button.
(vertical-split-pane args items)
Creates a vertical split pane.
Creates a vertical split pane.
Maps keywords to the constants in WindowConstants.
Maps keywords to the constants in WindowConstants.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close