Report as inappropriate.
This project emulates the Java GUI components for Buttons, Labels and
TextFields. The component system includes:
- ActionListener style callback support for Buttons and TextFields
- a focus subsystem (important for components with text input)
- ability to change the look by setting sizes, colors and borders
Move your mouse over the buttons and notice the rollover effect. Also,
try selecting text in the text boxes with your mouse. You can change the
highlighted text by typing the new characters.
To use the components, copy the GUIComponent superclass into your project along with any components you want to use.
You can change the look of any component by changing sizes, fonts, foreground and background colors and borders. The GUIWorld class has many examples of how to use various features of the components.
This GUI collection grew out of my need for text components for my Greenfoot Jeopardy game (see http://greenfootgallery.org/scenarios/2370).
Download the scenario and see the README.TXT file (Scenario Information) for design notes.
14123 views / 15 in the last 7 days
18 votes | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes
There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)
This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.
Want to leave a comment? You must first log in.
2011/8/16
2011/8/16
2011/8/16
2011/8/16
2011/8/17
2011/8/17
2011/8/18
2011/8/20