CS 108: Application Programming                                                                                                    Spring Semester 2005 Info and Announcements Course Description Books, Software and Useful Links Class Examples
Class meeting Concept Examples from class
1/20/05 Declaring a class, creating an object MessageObject.java
1/25/05 Declaring member variables VariableDemonstration.java
Car.java
1/27/05
Standard Output (to the console window).
Accessor (get) and Mutator (set) methods
StandardOutputTest.java
Car2.java
2/1/05
Accessor (get) and Mutator (set) methods (again)
Reading input from the keyboard
BankAccount.java
StandardInputTest.java
2/3/05
More on reading input from the keyboard
StandardInputTest.java (updated)
Stream example to be posted.
2/8/05
Constructors -- first pass
BankAccount_1.java
2/10/05
Constructors with multiple parameters
Copy constructor
Overloaded method names
Convenience methods
Java arithmetic
BankAccount_2.java
2/15/05
More Java arithmetic
Introducing logical expressions
Introducing if statements
MathOperations.java
ExpressionDemonstration.java
2/17/05
Review of parameter passing, stepping through the code line by line with the debugger
Logical expressions
More if/else/else if statements
Grading.java
2/24/05
Introduction to repetition
Counter-controlled loops.
Sentinel-controlled loops.
Repetition.java
3/1/05
More repetition, text-based menu.
Do-while loops.
For-loops.
Repetition_1.java
RepetitionUsingFor.java
CompoundInterest.java
3/3/05
Arrays of primitives -- declaring, creating, initilzing, accessing elements.
Iterating through an array with a for-loops.
ArrayExamples.java
RandomNumbers.java
3/15/05
Arrays of objects -- declaring, creating, initilzing, accessing elements.
Assigning elements.
Sorting an array of elements.
SortingNames.java
3/24/05
Introduction to the NetBeans GUI Builder.
AbsoluteLayout, JFrame, JLabel, JTextField, JButton, Events
NOTE: to open the window in NetBeans, you will need both the ".java" and the ".form" files, and save both to the same location in your source tree.
FrameExample1.java
FrameExample1.form
MathFrame.java
MathFrame.form
3/29/05
Using JTextArea and JScrollPane
Centering the window on the screen
FrameExample2.java
FrameExample2.form
3/31/05
Selection: JCheckBox, JRadioButton, JButonGroup
FrameExample3_Selection.java
FrameExample3_Selection.form
4/5/05
Modality, JOptionPane dialogs for Message Boxes, YES/NO Confirmation, etc.
ModalityExample.java
ModalityExample.form
4/7/05
More about modality, JOptionPane dialogs for Message Boxes, YES/NO Confirmation, Prompting for input, and selection.
Custom dialog creations, showing/hiding, retrieving data from a dialog.
Using a batch file to run a Java application outside of NetBeans.
ModalityExample_1.java
ModalityExample_1.form
CustomDialogExample.java
CustomDialogExample.form
run_im.bat
4/12/05
Building and manipulating selection lists.
JComboBox, JList
SelectionExample.java
SelectionExample.form



Created by: Aaron Stevens, azs@aaronstevens.net
www.aaronstevens.net/academics/cs108/
Last update: 12 April 2005