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

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Java Programming, 3e Concepts and Techniques Chapter 3 Manipulating Data Using Methods (V) ICTN 2730 Lecture 13 02/11/2008 Chapter 3: Manipulating Data Using Methods 2 Assignments Read Chapter 3 and Writing Methods in Chapter 4 before doing Homework 4. Type, compile and run BodyMassSwing.java and BodyMassApplet.java in TextPad (No need to submit the code.) Homework 3 sample solutions have been posted on Blackboard. Homework 4 is due Wednesday. It contains a bonus section. Do not miss the opportunity to improve your grade. Chapter 3: Manipulating Data Using Methods 3 Homework Projects Examine the requirements and deliverables carefully. Feel free to ask questions if anything is not clear. The projects will become more challenging and the instructions will become less detailed. Students are expected to use skills gained in previous projects. Do NOT spend too much time trouble shooting a problem. Come to see me before the due date. Recompile and test the Java code on the class Linux server. No credit can be given if the program does not work on the server. Chapter 3: Manipulating Data Using Methods 4 The Body Mass Index Calculator An interactive program Accepts the weight and height from the user Calculates the BMI to gauge total body fat Displays the result Three versions Input/Output using the command prompt Input/Output using dialog boxes Web environments use an applet interface Chapter 3: Manipulating Data Using Methods 5 (b) console application using dialog boxes (a) console application in a command prompt window (c) applet Chapter 3: Manipulating Data Using Methods 6 Chapter 3: Manipulating Data Using Methods 7 Swing Components A GUI toolkit for Java ( javax.swing) Swing includes graphical user interface (GUI) widgets such as text boxes, buttons, split-panes, and tables. Swing widgets provide more complicated GUI components than the earlier Abstract Window Toolkit. pluggable look and feel; uniform behavior Swing sometimes runs slow on some platforms Chapter 3: Manipulating Data Using Methods 8 Using Swing Components Save the previous version of the Body Mass Index Calculator with a new filename Import the javax.swing.JOptionPane class Import the javax....
View Full Document

Page1 / 33

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

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

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