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.
12718 views / 557 in the last 7 days
18 votes | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes