Index Lesson One Lesson Two Lesson Three Lesson Four Lesson Five Lesson Six Lesson Seven

Introduction to the Standard Libraries of Java

What is Java?

Java is a general purpose programming language. Applets are programs written in Java that can run inside of a Java-enabled web browser, such as HotJava, Netscape, and Internet Explorer.

Please, not another Java tutorial

Actually, Don Benack gave an overview of the Java language for his presentation. I won't duplicate his work: ou're saved 8^)

Instead, I will give a quick background into Java's standard libraries, focusing mainly on the AWT (Abstract Windowing Toolkit). The goal is to flatten the learning curve, thus enabling you to get started programming in Java more quickly.

Why do I care about the libraries?

One of the great things about Java is that it comes with standard libraries for such things as: The libraries are serve three purposes:
  1. Provide a platform-independent way to do these things
  2. Save the programmer from re-inventing a few wheels
  3. Promote a bit of consistency between programming styles and base classes

So, tell me about the cool libraries

Lesson One HelloWorld Applet

Lesson Two Demo of all components

Lesson Three Demo of all components with event handling

While discussing the component demo, we had a discussion of the Java keyword super. A summary of this discussion can be found here.

Lesson Four Scribble Applet

Lesson Five Color Scribble Applet

Lesson Six Clearable Scribble Applet

Lesson Seven networking topics

References

Below for some links to other good tutorials and reference pages.

As part of the JDK (Java Development Kit), Sun distributes a fairly good reference of the classes that make up the standard libraries.

If you are on a CS system here at the University of Buffalo, you can access the same pages locally .

A local copy of Sun's Java Tutorial is here.


Index Lesson One Lesson Two Lesson Three Lesson Four Lesson Five Lesson Six Lesson Seven