Lecture26 - Java Programming, 3e Concepts and Techniques...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Java Programming, 3e Concepts and Techniques Chapter 6 ICTN 2730 Lecture 26 03/24/2008 Creating Menus and Button Arrays Using the Abstract Windows Toolkit (I)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Assignments Read chapter 6 and lecture notes. Homework 8 grades are available on Blackboard. Homework 9 is due Wednesday. Please read chapter 6 before starting dong the homework project.
Background image of page 2
3 Homework 9 New Calculator Application
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Homework 9 New Calculator Application Read Chapter 6 and examine Calculator.java Open Calculator.java, change the class name from Calculator to NewCalculator, make other corresponding adjustments (the name of the constructor method; the name of the constructor in the main() method) Recompile and run the modified program NewCalculator.java. How to handle the error “illegal start of expression”?
Background image of page 4
5 Homework 9 New Calculator Application In the constructor method NewCalculator(): We need to identify the components. Which component does key[i] represent? Any adjustment to the keys array? Construct and initialize new buttons addM, PasteM, Bksp and CLR. Adjust the layout of the keypad panel Add new buttons to the keypad panel
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Homework 9 New Calculator Application In the actionPerformed() method: Add one case/break for each new button inside the switch structure (There are two switch structures, which one?) addM: reuse the code for the Copy command
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2008 for the course ICTN 2730 taught by Professor Li during the Spring '08 term at East Carolina University .

Page1 / 20

Lecture26 - Java Programming, 3e Concepts and Techniques...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online