| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
Procedures for constructing a GUI with Swing.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
gets width of the GUI component.
gets height of the GUI component.
sets color of the component to the given color.
gets preffered width of the GUI component.
gets preffered height of the GUI component.
gets X-coordinate of the component.
gets Y-coordinate of the component.
sets X-coordinate of the component to the given number.
sets Y-coordinate of the component to the given number.
gets a text from the component which has a text e.g. textfields.
sets the given text to the component which has a text.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a button with the given text.
action specified the procedure with one argument
when button is pressed.
creates a button with an action.
Available actions show as follows.
| action | specify a procedure with one argument when the action is executed | 
| accelerator-key | specify an accelerator key | 
| long-description | specify a long description | 
| mnemonic-key | specify a mnemonic key | 
| name | specify a name | 
| short-description | specify a short description | 
| small-icon | specify a small icon | 
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a canvas which can be painted by the painter framework.
Window coordinate can be specified
with x-begin, y-begin, x-end and y-end.
If you specify x-begin and so on
coordinate system of the window has direction which is used in mathematics
(x-axis is right directed and y-axis is up directed).
If you don’t specify x-begin and so on
coordinate system has direction which is used in computer graphics
(x-axis is right directed and y-axis is down directed).
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a label with the given name.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a panel which can contain GUI components.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a textfield with the given size. Initial text can be specified with text.
creates a text area with row-size and column-size.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
create a window with xsize and ysize.
The window is not displayed when this procedure is executed.
menus specifies properties of menubar shown as follows.
| ("menu1" proc) | a menu with procedure proc. proc has one argument. | 
| ("menu1" proc key key2) | a menu with procedure proc and short cut keys. | 
| ("menu1" seperator) | a menu separator. | 
| ("menu1" (submenu)) | a sub menu. | 
shows the window.
hides the window.
shows the window. Program exits when the window is closed.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a modal dialog component. The dialog is not displayed when this procedure is executed. Please use show-window.
creates a modeless dialog component. The dialog is not displayed when this procedure is executed. Please use show-window.
shows a yes-no dialog and returns #t if the response is yes.
parent-component specifies a parent component of the dialog
or #f if no parent components specify.
message-type specifies a message type
such as error, warning and information.
Symbols shown as follows is available as message-type.
shows a yes-no-cancel dialog and returns #t if the response is yes, #f if the response is no or symbol ’canceled if the dialog is canceled.
shows a input dialog and returns a string which is inputed or #f if the dialog is canceled.
shows a message dialog.
sets whether size of the dialog is variable.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a combobox with item-list.
A value of the combobox is editable.
item-list is an associative list whose element is
(value to be displayed . value to be gotten by get-selected-item-value).
creates a listbox with item-list.
A value of the listbox is not editable.
item-list is an associative list whose element is
(value to be displayed . value to be gotten by get-selected-item-value).
gets a value from the selectable component e.g. listbox and combobox.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a checkbox component.
returns #t if the checkbox is checked.
checks/unchecks the checkbox.
creates a radio button component.
action-proc specifies a procedure with one argument.
creates a button group. radio-button-list specifies buttons included in the group.
returns a value which is selected in the button group.
changes the value which is selected in the button group.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a file chooser.
extension-filters specifies a list to be filtered.
Syntax of extension-filters shows as follows.
(("extension[,extension …]" . a string to display the file chooser
 …)
The dialog is not displayed when this procedure is executed. Please call show-xxx-file-chooser.
changes the selection mode of the file chooser. Available modes are shown as follows.
| files | files only | 
| directories | directories only | 
| files-and-directories | files and directories | 
sets whether "selects all files" is used as a filter.
shows the filechooser as "open" and returns the chosen file or #f(canceled).
shows the filechooser as "save" and returns the chosen file or #f(canceled).
shows the filechooser whose button is specified by approve-button-text and returns the chosen file or #f(canceled).
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
shows a color chooser.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a menu item component.
action-proc specifies a procedure with one argument.
mnenomic-key and mnenomic-key-modifier specify a mnenomic key.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
copies the object to the system clipboard.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a horizontal scroll bar component.
The arguements means shown as follows.
| value | initial value | 
| extent | step | 
| min | maximum | 
| max | minimum | 
| real-min | scaled maximum | 
| real-max | scaled minimum | 
creates a vertical scroll bar component.
gets the value which the scroll bar indicates.
gets the relative value which the scroll bar indicates. Its maximum is 1 and minimum is 0.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a number spinner component.
If max(min) is #f, there is no upper(lower) bound.
The form of format is under java.text.DecimalFormat.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a tabbed pane.
gets the component which is selected in the tabbed pane.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates an image icon.
creates an icon which can be painted by the painter framework.
The coordinate can be specified
with x-begin, y-begin, x-end and y-end.
If you specify x-begin and so on
coordinate system of the window has direction which is used in mathematics
(x-axis is right directed and y-axis is up directed).
If you don’t specify x-begin and so on
coordinate system has direction which is used in computer graphics
(x-axis is right directed and y-axis is down directed).
Coordinate which you specify is conserved when the window is resized.
The window is disposed when it is closed.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a text pane.
sets a default action when a key is pressed.
adds a key action when a key is pressed.
sets a style of characters between offset to offset + length.
Available symbols for attribute-key are shown as follows.
| keyword | description | 
| font-family | specifies a kind of font | 
| font-size | specifies size of font | 
| bold | specifies bold | 
| italic | specifies italic | 
| underline | specifies underline | 
| strike | specifies strike | 
| superscript | specifies superscript | 
| subscript | specifies subscript | 
| color | specifies color | 
| background-color | specifies background color | 
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
layouts the panel by GridBagLayout.
Syntax of constraint is shown as follows.
(((GUI component [(attribute . value) …]) … [((GUI component [(attribute . value) …]) …)] …)
Available symbols as attribute are shown as follows.
| attribute | description | 
| weightx | weight of component width of a cell | 
| weighty | weight of component height of a cell | 
| fill | specify whether the component is extended. Symbol shown as follows are available. | 
| none | not extend | 
| horizontal | extends horizontally | 
| vertical | extends vertically | 
| both | extends horizontally and vertically | 
| gridx | specifies x-coordinate | 
| gridwidth | specifies horizontal merged cells (same as colspan in <table> of HTML) | 
| gridheight | specifies vertical merged cells (same as rowspan in <table> of HTML) | 
layouts the panel by GridLayout.
Syntax of layout is shown as follows.
(((component-of-the-first-column component-of-the-second-column …) ; This is first row ((component-of-the-first-column component-of-the-second-column …) ;This is second row …)
layouts the panel by BorderLayout.
Components to be layouted is specified by layout
as an associative list whose value is a component
and key is shows as follows.
| symbol of the key | description | 
| center | center | 
| north | north | 
| south | south | 
| east | east | 
| west | west | 
layouts the panel by FlowLayout.
layouts the panel by GroupLayout.
Layout is specified by a list of components
or a vector which specifies a gap.
Vertical gap is specified by #(vertical min prefer max) and horizontal gap is specified by #(horizontal min prefer max).
Here is an example.
(layout-group
  *window1*
  `((,a #(,b vertical 20 25 30))
    (,c ((,d ,e)
         (,f ,g)))
    (,h #(horizontal 5 10 20 vertical 20 25 30))))
layouts the panel without any layout.
This procedure should not use as possible.
This procedure layouts components with coordinates. Here is an example.
(layout-null
  *window1*
  `((,a 100 100 50 30)    ; x-coodinate y-coordinate width height
    (,b 200 200 100 20)))
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a progress bar. orientation must be the symbol ’horizontal or ’vertical.
gets maximum(minimum) of the progress bar.
gets current value of the progress bar.
gets ratio of the progress bar.
gets the string which is displayed in the progress bar.
gets the orientation of the progress bar.
sets maximum(minimum) of the progress bar.
sets current value of the progress bar.
sets the string which is displayed in the progress bar.
sets the indeterminate mode to the progress bar.
creates a progress monitor.
The progress monitor is a dialog window which is not displayed initially
but displayed when a process has not been terminated.
millis, component, message, note,
max and min specify millisecond to display,
a parent component(or #f), a note, maximum and minimum respectively.
sets the progress value to the progress monitor.
The progress monitor is closed automatically
when the value is more than its maximum.
gets the note of the progress monitor.
sets the note of the progress monitor.
closes the progress monitor.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a Swing list.
Values of the list are specified by first argument.
When the argument is a vector, the Swing list is immutable.
When the argument is a Scheme list, the Swing list is mutable.
gets a list of the objects which are selected in the Swing list.
sets the selection mode of the Swing list. Symbols shown as follows are available as mode.
| symbol | description | 
| single | only single value can be selected | 
| interval | an interval of values can be selected | 
| multiple | multiple values can be selected | 
gets the selection mode of the Swing list.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
Nodes(leaves) of the Swing tree consist of abstract node objects. Structure of the tree is changed by the abstract node object.
creates a Swing tree.
Initial tree structure is specified by a list or a vector.
When the argument is a vector, the structure is immutable.
When the argument is a Scheme list, the structure is mutable.
Syntax of tree-structure is shown as follows.
(node
 (node leaf1
      leaf2
      (node subleaf1 subleaf2 subleaf3)
      leaf3)
 (node leaf1 leaf2))
gets a node which includes the object which selected first.
gets a list of nodes which selected in the Swing tree.
gets a path which includes the object which selected first.
gets a list of lists of paths which selected in the Swing tree.
gets the root object of the Swing tree.
gets the root node of the Swing tree.
sets the structure of the Swing tree.
gets the object which is in component coordinate (x, y), or returns #f if there is no objects in (x, y).
gets the path is in component coordinate (x, y), or returns #f if there is no objects in (x, y).
sets the Swing tree renderer to the Swing tree.
The Swing tree renderer enables displaying custom icons and so on.
Procedure renderer has six arguments, which are
a label, a destination Swing tree,
a boolean value whether a node is selected,
a boolean value wheteer the node is expanded,
a boolean value wheteer the node is a leaf and
a boolean value wheteer the node is focused, respectively.
Here is an example of displaying other icon
when the object of a node is an integer.
(jtree-renderer-set!
  tr
  (lambda (l t node sel expn leaf hasf)
    (if (integer? (jtree-node->datum node))
        (label-icon-set! l icon1))))
converts the Swing tree node to the object.
converts the Swing tree under the node to a list of the objects.
inserts the datum to the rowth of the Swing tree node.
adds the datum to the Swing tree node.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
returns a list of installed look and feels.
sets the look and feel to the given name.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
creates a Swing timer.
init-delay specifies initial delay in milliseconds
and delay in milliseconds if delay is not specified.
delay specifies delay.
If delay is #f, timer will start only once.
listener is a procedure with one argument
and called by timer.
starts the Swing timer.
stops the Swing timer.
restarts the Swing timer.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
starts the thread later in the Swing dispatch thread.
To manipulate any GUI component, you should call this procedure
because Swing framework is not support multithread perfectly.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
adds the action listener action-proc to the component. action-proc must be a procedure with one argument.
adds the mouse listener event-proc to the component. event-proc must be a procedure with one argument.
adds the item listener event-proc to the component. event-proc must be a procedure with one argument.
adds the adjustment listener event-proc to the component. event-proc must be a procedure with one argument.
adds the change listener event-proc to the component. event-proc must be a procedure with one argument.
adds the window listener event-proc to the component. event-proc must be a procedure with one argument.
gets the action command from the given event object.
gets the SRFI-19 time when the action is occurred from the given event object.
gets the parameter string from the given event object.
gets a symbol indicates the mouse button which is pressed
from the given event object.
Symbols of mouse buttons are shown as follows.
| symbol | description | 
| no-button | no button clicked | 
| button1 | first button clicked(left button in the Windows or UNIX environment) | 
| button2 | second button clicked(right button in the Windows environment) | 
| button3 | third button clicked(right button in the UNIX environment) | 
| unknown-button | unknown button clicked | 
gets the times which a mouse button clicked.
gets the x-coordinate in which a mouse button clicked. Coordinate system is the component coordinate system.
gets the y-coordinate in which a mouse button clicked. Coordinate system is the component coordinate system.
returns #t if the event object is a popup trigger.
gets selected items from the event object.
gets adjusted items from the event object.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
rings a bell.
updates the component UI.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | 
 
  This document was generated on August 9, 2012 using texi2html 5.0.