logo.jpg
Casey Bowman
     

**These files are text files. You will need to take this code and create Java files within your programming environment. If you don't have a programming environment set up, you can email me to get help setting one up. My recommendations are to use Eclipse in Windows or on a Mac, and to use the command line environment and a text editor (such as gedit) on Linux.

***If you are using Eclipse in Windows, there may be some issues with using JavaFX. Specifically, Eclipse may complain that it cannot access a "jar" file (jar = Java ARchive) named "jfxrt.jar". Here is page walking you through the process of fixing this problem.

Beginner-Level Examples

Link
Description File
Short Description
HelloWorld
File
Simple example program that prints "Hello World!" to the command line.
Truck
An example object with getters, setters, an overridden toString, and a test main.
SimpleForLoop
A simple for loop for assigning values to an array. Also shows a custom array printing method.
HelloWorldGUI
A Hello World program for working with Graphical User Interfaces.
CommandLineArguments
This program shows how to retrieve Strings from the list of command line arguments.
ConvertingCommandLineArguments
This program shows how to convert command line arguments into ints and doubles.
DoubleForLoop
This program shows how to iterate through double arrays.

Intermediate-Level Examples
**Note that some of these examples will use packages.

Link
Description File
Short Description
SwingRectangle
A program that uses javax swing to display a rectangle on a screen. Compare to FXRectangle.
FXRectangle
A program that uses javafx to display a rectangle on a screen. Compare to SwingRectangle.
FXRectangleMove
A program that uses javafx to display a rectangle, and then changes its location and appearance on mouse clicks.
ColorVisualizer
A program that uses javafx to display a rectangle, and changes its color based on hexadecimal color codes you provide.