Lecture38 - Java Programming 3e Concepts and Techniques...

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

View Full Document Right Arrow Icon
Java Programming, 3e Concepts and Techniques Review (I) ICTN2730 Lecture 38 04/23/2008
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 The last project - Homework 12, including the bonus section, is due tonight. Quiz 4, covering chapters 7-8, will be available on Blackboard from 7 pm Friday , April 25 till 9 pm Sunday , April 27. The final exam will be held Wednesday, May 7 at 8:30 am in SZ C309. Please bring a #2 pencil and a blue bubble sheet. Today’s Office Hours: 11 am – 2:45 pm
Background image of page 2
3 Homework 12
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 12 homework12.zip includes hotStocks.java and hotStocks.dat Section A hotStocks.java -> Stock1.java Change Frame to JFrame import statements The name of the constructor method must be the same as the class name and the file name may need a little debugging Section B (Bonus) Stock1.java -> Stock2.java Change the background color and text color. See section B in Homework 11 for hints.
Background image of page 4
5 Homework 12 Setting Colors The setBackground() and setForeground() methods – Table 4-16
Background image of page 5

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

View Full DocumentRight Arrow Icon
Homework 12 Setting Colors – Different Workarounds Different ways of fixing problems Add an intermediate container Adjust the layout Use a content pane 6
Background image of page 6
7 Homework 12 Layout Managers Examples from Chapter 7 // set Frame and keypad layout to grid layout setLayout(new BorderLayout()); keypad.setLayout(new GridLayout(4,4,10,10)); ………. . keypad.add(keys[0]); // 0 key ………. . add(lcd, BorderLayout.NORTH); add(keypad, BorderLayout.CENTER);
Background image of page 7

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

View Full DocumentRight Arrow Icon
Week 14 Bonus Assignment A(n) ____ method operates or manipulates variables for an external class. driver external instance member Discussed in chapter 5, the bookRoom() method is an instance method while the Room() method is the constructor method for the external class Room. 8
Background image of page 8
Consider the following for statement: for (int counter = 1; counter < 1; counter --). How many times will the loop execute? 0 1 2 Infinite number of times See Table 5-7, as long as the condition evaluates to true, the loop continues. 9
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
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 / 34

Lecture38 - Java Programming 3e Concepts and Techniques...

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

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