Lecture37 - 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 8 Writing Data to a Sequential Data File (III) ICTN2730 Lecture 37 04/21/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 Read chapter 8 and lecture notes. The last project - Homework 12, including the bonus section, is due Wednesday. 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.
Background image of page 2
3 The BillPayer Program public class BillPayer extends JFrame implements ActionListener { //Declarations and constructions public static void main(String[] args) {. ..} public BillPayer() {. ..} public void actionPerformed(ActionEvent e) {. ..} public boolean checkFields() {. ..} public void clearFields() {. ..} }
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 The main() method public static void main(String[] args) { //set the look and feel of the interface ……. . BillPayer f = new BillPayer(); f.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_ CLOSE); f.setSize(450,300); f.setTitle("Crandall Power and Light Custome Payments"); f.setResizable(false); f.setLocation(200,200); f.setVisible(true); }
Background image of page 4
5 Opening a File Connection Declare a variable to hold a stream of data A DataInputStream or DataOutputStream object can read and write formatted data in a portable way Construct an instance of the stream and assign
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.

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 / 24

Lecture37 - 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