SpringGUI

introduction    download    reference    FAQ


Examples

Please note that for the source code of any of these examples to run, SpringGUI must be downloaded and installed properly.

- Example: All Elements
This shows how to place all elements in SpringGUI on the canvas. Whenever an event happens, it is displayed on a line on the screen. If you download the code and start it from within Processing, the example will also print any event happening to Processing's output console, giving you a more readable history of events.
Applet
Source
(Note that you need to edit the line that specifies the font-name in the source to match a font that you need to add to the sketch.)

- Example: mouseEntered
Shows how to create a rollover effect by changing elements' background colors when the mouse enters and exits them. This also shows how to react to specific types of elements instead of specific elements by name.
This example currently misbehaves in some versions of Java on MacOSX. See the section on known issues in the FAQ for further information.
Applet
Source

- Example: TextField
This uses the "returnPressed" event of a TextField to add whatever content was in the TextField to a Choice element, as long as the content is not already an item in the Choice and the TextField is not empty. Selecting an item from the Choice will transfer it to the TextField.
Applet
Source

- Example: Radiobuttons
Four Radiobuttons let the user choose the background color for the Applet. Since the GUI elements in SpringGUI are not transparent, we will have to change their background as well.
Applet
Source


back to the top of the page


tinkering with codetools and docsscrapbookabout