Code Samples
- Bouncing Rectangle - from Lecture #2
- Super Rectangles - from Lecture #3 (this is a .zip file)
- PrintArguments - from Lecture #4, how to accept and examine arguments from the command line
- Simple Scanner Demo - from Lecture #4, also contains detailed comments about basic class setup.
- Maze Game - from Lecture #5, text based maze game utilizing multiple classes, a multidimensional array and the Scanner object.
- Kill Rectangles - A game written in Processing using the ArrayList object.
- NumberFinder - Creates a list of numbers without any duplicates and then randomly guesses which number the user picked until it finds the right answer.
- Animate Rectangle - A simple animation of a rectangle moving across the screen rendered using Swing widgets.
- Simple 'Particle' - This places a very simple particle on the screen when ever the user clicks it with the mouse. The particle just flies straight up at a constant rate.
- Sample Swing Layout A Swing layout for sending an email using Border and Grid Layout Managers.
- Layout Manager Tester Test how different layout managers place a set of buttons in a frame.
- SerializeIt Loading and saving an object to a binary file.
- JListDemo How to display a Vector object in Swing and remove objects from it using a JButton