Day 8
Objectives:
Objectives:
- More GUI components: Labels, CheckBoxes, Radio buttons, Panes
- Mouse events
Lab assignment:
Lab assignment:
- #1: continue to work on #5 exercise from Day 07:
2) Add functionality to the fields in the window: the user should be able to enter the values for radius and height, and after clicking on Calculate button receive the volume of the cylinder.
- #2: look through the following examples (these are separate projects!) (this is the code from the textbook). Try changing the code to see what happens:
- Checkbox: CheckBoxFrame.java, CheckBoxTest.java
- RadioButton: RadioButtonFrame.java, RadioButtonTest.java
- ComboBox: ComboBoxFrame.java, ComboBoxTest.java, pictures (put into bin folder): bug1.GIF, bug2.GIF, buganim.gif, travelbug.gif
- ListFrame: ListFrame.java, ListTest.java
- Multiple Selection: MultipleSelectionFrame.java, MultipleSelectionTest.java
- Mouse Tracker: MouseTrackerFrame.java, MouseTracker.java
- Mouse details: MouseDetailsFrame.java, MouseDetails.java
- Mouse Painter: PaintPanel.java, Painter.java
Class materials:
Class materials:
- lecture slides: Slides for Day 8
- Employee with GUI: EmployeeFrame.java, HourlyEmployee.java, EmployeeFrameTest.java
- Java SWING components: SWING