Tutorials and Online Training Videos

Java 2: Graphics Tutorial

Java is a simple, scalable object oriented, general purpose programming language with a multitude of uses. With the power to develop everything from simple graphics and web animations, to high-end business applications that program hand-held devices, microwaves, cross platform server applications and more, it's no wonder why Java is on everyone's mind. In this, the second in a series of Java courses offered by VTC, Java expert, Arthur Griffith, uses practical examples to demonstrate Java programming as it applies to the creation and manipulation of graphic objects. The source code is also provided, so the user can follow right along. To begin learning learning today, simply click on one of the Java 2: Graphics lessons.


Course Introduction
Course Overview

Getting Started

Where to Get Java
The Command Line Installation
Writing and Compiling a Program
The Mainline

The Graphics Object and Colors

The Graphics Class
The Graphics2D Class
The Coordinate System
Filling a Window with Color
Inventing a Color of Your Own
Shading Up and Down
A Color Gradient
Color Gradient Directions
Cyclical Color Gradient


Translate and Rotate
The Affine Transform

Fundamental Drawing

A Random Drawing
Rounded Rectangles
Basic Line Drawing
Corners and Ends
Dashed Lines

Fundamental Fonts

Font Measuring
Positioning Text
Font List

Image Files

Loading Image Files
Types of Scaling
Pixel by Pixel pt. 1
Pixel by Pixel pt. 2
Convolving pt. 1
Convolving pt. 2
Transformation pt. 1
Transformation pt. 2
Cross Fading

The Mouse and Keyboard

Reading Mouse Events
Mouse Motion
All Mouse Events
Reading Keyboard Events
Selecting a Mouse Cursor
Dragging Objects
Dragging Solid Objects

Making Shapes and Fitting Curves

Building a Rectangle with GeneralPath
Scaling and Zig Zagging
The Winding Rule
Quadratic Curves
Asymmetric Quadratic Curves
Cubic Curves
Asymmetric Cubic Curves
Attaching Shapes with GeneralPath
Combining Shapes with GeneralPath
Combining Shapes with an Area Object
Crop Image
Filling an Area

Fitting Text

Ways of Displaying Text pt. 1
Ways of Displaying Text pt. 2
Positioning Text
Text Attributes
Drawn Letters
Letters with Pictures
Dynamic Resizing of Text

Stupid Animation Tricks

No Flicker
No Flicker Applet
Pong and Electrons pt. 1
Pong and Electrons pt. 2


About this Author

Related Books on Java 2: Graphics

Save $80 on the
by Motorola with Verizon Wireless service for less than from Verizon Wireless directly.
Save $80 on DROID BIONIC
More Cell Phone Discounts