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

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

View Full Document Right Arrow Icon
Java Programming, 3e Concepts and Techniques Chapter 6 ICTN 2730 Lecture 27 03/26/2008 Creating Menus and Button Arrays Using the Abstract Windows Toolkit (II)
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 9 is due tonight. Please read chapter 6 before starting doing the project. Check Lecture26.ppt for more hints. Homework 10 will be posted Thursday. Quiz 3, covering chapters 5 - 6 and lectures 19-28, will be available on Blackboard from 7 pm Sunday (3/30) till 9 pm Monday (3/31).
Background image of page 2
3 Overview of coding process Import statements Extends Frame and implements ActionListener Constructor method Creates Frame Embeds components Initializes variables Establishes layout manager Sets TextField display actionPerformed() method handles the events. Main() method creates an instance of Calculator
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 Calculator Application public class Calculator extends Frame implements ActionListener { public Calculator() { } public void actionPerformed(ActionEvent e) { } // end of actionPerformed public static void main(String args[]) { Calculator f = new Calculator(); } // end of main } // end of class
Background image of page 4
5 The main() Method Constructs an instance of Calculator Sets attributes with Frame methods
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 25

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

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

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