Liking cljdoc? Tell your friends :D

org.soulspace.clj.java.swing.core

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.
raw docstring

actionclj

(action f)
(action f args)

Creates an action.

Creates an action.
sourceraw docstring

action-keysclj

Maps keywords to the constants in Action.

Maps keywords to the constants in Action.
sourceraw docstring

add-key-bindingclj

(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.
sourceraw docstring

allows-invalid?clj

(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.
sourceraw docstring

buttonclj

(button)
(button args)

Creates a button.

Creates a button.
sourceraw docstring

button-groupclj

(button-group args items)

Creates a button group.

Creates a button group.
sourceraw docstring

canvas-panelclj

(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.
sourceraw docstring

card-layoutclj

(card-layout args items)

Creates a card layout.

Creates a card layout.
sourceraw docstring

check-boxclj

(check-box)
(check-box args)

Creates a check box.

Creates a check box.
sourceraw docstring

checkbox-menu-itemclj

(checkbox-menu-item)
(checkbox-menu-item args)

Creates a check box menu item.

Creates a check box menu item.
sourceraw docstring

color-choose-dialogclj

(color-choose-dialog c title color)

Creates a color choose dialog.

Creates a color choose dialog.
sourceraw docstring

combo-boxclj

(combo-box args items)

Creates a combo box.

Creates a combo box.
sourceraw docstring

commit-editclj

(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.
sourceraw docstring

commit-edit-keysclj

Maps keywords to the constants in JFormattedTextField.

Maps keywords to the constants in JFormattedTextField.
sourceraw docstring

confirm-dialogclj

(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.
sourceraw docstring

dialogclj

(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.
sourceraw docstring

edit-valid?clj

(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.
sourceraw docstring

editable?clj

(editable? c)

Checks whether the user can edit text component.

Checks whether the user can edit text component.
sourceraw docstring

editor-paneclj

(editor-pane)
(editor-pane args)

Creates a editor pane.

Creates a editor pane.
sourceraw docstring

file-open-dialogclj

(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.
sourceraw docstring

file-save-dialogclj

(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.
sourceraw docstring

filechooser-keysclj

Maps keywords to the constants in JFileChooser.

Maps keywords to the constants in JFileChooser.
sourceraw docstring

first-cardclj

(first-card cl container)

Shows the first card on the container.

Shows the first card on the container.
sourceraw docstring

focus-condition-keysclj

Maps keywords to the constants in JComponent.

Maps keywords to the constants in JComponent.
sourceraw docstring

formatted-text-fieldclj

(formatted-text-field fmt)
(formatted-text-field fmt args)

Creates a text field.

Creates a text field.
sourceraw docstring

formatted-text-field-verifierclj

(formatted-text-field-verifier)

Creates an input verifier for a formatted text field.

Creates an input verifier for a formatted text field.
sourceraw docstring

frameclj

(frame args cp-items)

Creates a frame.

Creates a frame.
sourceraw docstring

get-input-mapclj

(get-input-map c)
(get-input-map c k)

Returns the input map of the component.

Returns the input map of the component.
sourceraw docstring

get-integerclj

(get-integer field)

Returns the field value as an integer.

Returns the field value as an integer.
sourceraw docstring

get-numberclj

(get-number field)

Returns the field value as a number.

Returns the field value as a number.
sourceraw docstring

get-percentclj

(get-percent field)

Returns the field value as a percent instance.

Returns the field value as a percent instance.
sourceraw docstring

get-selection-modelclj

(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).
sourceraw docstring

get-textclj

(get-text c)

Returns the text component value as a string.

Returns the text component value as a string.
sourceraw docstring

hide-componentclj

(hide-component c)

Hides the component by setting its visibility to false.

Hides the component by setting its visibility to false.
sourceraw docstring

horizontal-split-paneclj

(horizontal-split-pane args items)

Creates a horizontal split pane.

Creates a horizontal split pane.
sourceraw docstring

image-iconclj

(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.
sourceraw docstring

init-swingclj

(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.
sourceraw docstring

input-dialogclj

(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.
sourceraw docstring

input-verifierclj

(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'.
sourceraw docstring

installed-look-and-feelsclj

(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.
sourceraw docstring

integer-fieldclj

(integer-field)
(integer-field args)

Creates an integer field.

Creates an integer field.
sourceraw docstring

j-listclj

(j-list)
(j-list args)

Creates a swing list component.

Creates a swing list component.
sourceraw docstring

j-treeclj

(j-tree)
(j-tree args)

Creates a swing tree component.

Creates a swing tree component.
sourceraw docstring

key-strokeclj

(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.
sourceraw docstring

labelclj

(label args)

Creates a label.

Creates a label.
sourceraw docstring

last-cardclj

(last-card cl container)

Shows the last card on the container.

Shows the last card on the container.
sourceraw docstring

layered-paneclj

(layered-pane args items)

Creates a layered pane.

Creates a layered pane.
sourceraw docstring

list-selection-keysclj

Maps keywords to the constants in ListSelectionModel.

Maps keywords to the constants in ListSelectionModel.
sourceraw docstring

look-and-feel-available?clj

(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.
sourceraw docstring

mapseq-table-modelclj

(mapseq-table-model col-spec data)
(mapseq-table-model col-spec data path)

Creates a table model backed with a collection of maps. The given 'data' can be a data structure or a ref type (e.g. an atom). If a vector of keys is given as 'path', the collection of maps is looked up by this keys in data.

The col-spec map may contain the keys:

:label - the label of the column

:key - the key of the value for the column in the date

:editable - if the column is editable

:converter - an optional converter function for the value

Creates a table model backed with a collection of maps.
The given 'data' can be a data structure or a ref type (e.g. an atom).
If a vector of keys is given as 'path', the collection of maps is looked up by this keys in data.

The col-spec map may contain the keys:

:label - the label of the column

:key - the key of the value for the column in the date

:editable - if the column is editable

:converter - an optional converter function for the value
sourceraw docstring

mask-formatterclj

(mask-formatter s)

Creates a mask formatter for the given pattern.

Creates a mask formatter for the given pattern.
sourceraw docstring

(menu args items)

Creates a menu.

Creates a menu.
sourceraw docstring

(menu-bar args items)

Creates a menu bar.

Creates a menu bar.
sourceraw docstring

(menu-item args)

Creates a menu item.

Creates a menu item.
sourceraw docstring

message-dialogclj

(message-dialog text)
(message-dialog text title type)
(message-dialog text title type icon)

Creates a message dialog.

Creates a message dialog.
sourceraw docstring

mig-layoutclj

(mig-layout args)

Creates a mig layout.

Creates a mig layout.
sourceraw docstring

modifier-mask-keysclj

Maps keywords to the constants in ActionEvent.

Maps keywords to the constants in ActionEvent.
sourceraw docstring

next-cardclj

(next-card cl container)

Shows the next card on the container.

Shows the next card on the container.
sourceraw docstring

number-fieldclj

(number-field)
(number-field args)

Creates a number field.

Creates a number field.
sourceraw docstring

option-paneclj

(option-pane)
(option-pane args)

Creates an option pane dialog.

Creates an option pane dialog.
sourceraw docstring

option-pane-keysclj

Maps keywords to the constants in JOptionsPane.

Maps keywords to the constants in JOptionsPane.
sourceraw docstring

option-pane-message-keysclj

Maps keywords to the constants in JOptionsPane.

Maps keywords to the constants in JOptionsPane.
sourceraw docstring

panelclj

(panel args items)

Creates a panel.

Creates a panel.
sourceraw docstring

password-fieldclj

(password-field)
(password-field args)

Creates a password field.

Creates a password field.
sourceraw docstring

(popup-menu args items)

Creates a popup menu.

Creates a popup menu.
sourceraw docstring

previous-cardclj

(previous-card cl container)

Shows the previous card on the container.

Shows the previous card on the container.
sourceraw docstring

progress-barclj

(progress-bar)
(progress-bar args)

Creates a progress bar.

Creates a progress bar.
sourceraw docstring

radio-buttonclj

(radio-button)
(radio-button args)

Creates a radio button.

Creates a radio button.
sourceraw docstring

radio-button-menu-itemclj

(radio-button-menu-item)
(radio-button-menu-item args)

Creates a radio button menu item.

Creates a radio button menu item.
sourceraw docstring

scroll-paneclj

(scroll-pane item)
(scroll-pane item args)

Creates a scroll pane.

Creates a scroll pane.
sourceraw docstring

select-allclj

(select-all c)

Selects all characters in the text component.

Selects all characters in the text component.
sourceraw docstring

separatorclj

(separator)
(separator args)

Creates a separator.

Creates a separator.
sourceraw docstring

seq-list-modelclj

(seq-list-model data)
(seq-list-model data path)

Creates a list model backed with the 'data' sequence.

The given 'data' can be a data structure or a ref type (e.g. an atom). If a vector of keys is given as 'path', the sequence is looked up by this keys in data.

Creates a list model backed with the 'data' sequence.

The given 'data' can be a data structure or a ref type (e.g. an atom).
If a vector of keys is given as 'path', the sequence is looked up by this keys in data.
sourceraw docstring

set-allows-invalidclj

(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.
sourceraw docstring

set-editableclj

(set-editable c value)

Sets whether the user can edit the text component.

Sets whether the user can edit the text component.
sourceraw docstring

set-focus-lost-behaviourclj

(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).
sourceraw docstring

set-look-and-feelclj

(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).
sourceraw docstring

set-selection-modeclj

(set-selection-mode model mode)

Sets the selection mode.

Sets the selection mode.
sourceraw docstring

set-textclj

(set-text c s)

Sets the text component value to 's'.

Sets the text component value to 's'.
sourceraw docstring

set-valueclj

(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'.
sourceraw docstring

show-cardclj

(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.
sourceraw docstring

show-componentclj

(show-component c)

Shows the component by setting its visibility to true.

Shows the component by setting its visibility to true.
sourceraw docstring

sliderclj

(slider)
(slider args)

Creates a slider.

Creates a slider.
sourceraw docstring

spinnerclj

(spinner)
(spinner args)

Creates a spinner.

Creates a spinner.
sourceraw docstring

split-paneclj

(split-pane args items)

Creates a split pane.

Creates a split pane.
sourceraw docstring

swing-keysclj

Maps keywords to the constants in SwingConstants.

Maps keywords to the constants in SwingConstants.
sourceraw docstring

tabbed-paneclj

(tabbed-pane args items)

Creates a tabbed pane.

Creates a tabbed pane.
sourceraw docstring

tableclj

(table)
(table args)

Creates a table.

Creates a table.
sourceraw docstring

table-cell-rendererclj

(table-cell-renderer rf args)

Creates a cell renderer with the render function 'rf'.

Creates a cell renderer with the render function 'rf'.
sourceraw docstring

text-areaclj

(text-area)
(text-area args)

Creates a text area.

Creates a text area.
sourceraw docstring

text-fieldclj

(text-field)
(text-field args)

Creates a text field.

Creates a text field.
sourceraw docstring

text-paneclj

(text-pane)
(text-pane args)

Creates a text pane.

Creates a text pane.
sourceraw docstring

titled-borderclj

(titled-border title)

Creates a titled border.

Creates a titled border.
sourceraw docstring

to-stringclj

(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.
sourceraw docstring

to-valueclj

(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.
sourceraw docstring

toggle-buttonclj

(toggle-button)
(toggle-button args)

Creates a toggle button.

Creates a toggle button.
sourceraw docstring

tool-barclj

(tool-bar args items)

Creates a tool bar.

Creates a tool bar.
sourceraw docstring

tree-nodeclj

(tree-node obj args items)

Creates a tree node.

Creates a tree node.
sourceraw docstring

vertical-split-paneclj

(vertical-split-pane args items)

Creates a vertical split pane.

Creates a vertical split pane.
sourceraw docstring

windowclj

(window args cp-items)

Creates a window.

Creates a window.
sourceraw docstring

window-keysclj

Maps keywords to the constants in WindowConstants.

Maps keywords to the constants in WindowConstants.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close