.Open Java Application Programmers Interface . The Java Application Programmers Interface 1.0.2 This is no longer documented or supported by its developers: Sun. Also see .See http://www.csci.csusb.edu/dick/samples/java.classes.html which displays the classes hierarchically complete with properties and selected fields and methods. This API is also indexed and documented by: .Set (Index to documentation): .See http://www.javasoft.com/products/jdk/1.2/docs/api/index.html (Packages): .See http://www.javasoft.com/products/jdk/1.2/docs/api/packages.html (Names): .See http://www.javasoft.com/products/jdk/1.2/docs/api/AllNames.html (Tree): .See http://www.javasoft.com/products/jdk/1.2/docs/api/tree.html .Close.Set API_1_2::=following .Net Notes: .Set All defined are for classes unless marked interface etc. The "@C" are the possible subsets/subtypes/extensions of class C. All class extend $Object. The name is defined by a link to a page specifying all non-private fields and methods. This does not show "Peer" and "Remote" classes. Many of the classes added between 1.0 and 1.2 are not listed here. .Close.Set . A AbstractMethodError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.AbstractMethodError.html Applet::@$Panel, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.applet.Applet.html AppletContext::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.applet.AppletContext.html AppletStub::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.applet.AppletStub.html ArithmeticException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ArithmeticException.html ArrayIndexOutOfBoundsException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ArrayIndexOutOfBoundsException.html ArrayStoreException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ArrayStoreException.html AudioClip::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.applet.AudioClip.html AWTError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.AWTError.html AWTException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.AWTException.html . B BitSet::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.BitSet.html Boolean::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Boolean.html BorderLayout::@#LayoutManager, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.BorderLayout.html A $LayoutManager that has a component in the center, top(north), bottom(south), left(west), and right(east) of it, or any subset of these. BufferedInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.BufferedInputStream.html BufferedOutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.BufferedOutputStream.html Button::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Button.html ByteArrayInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.ByteArrayInputStream.html ByteArrayOutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.ByteArrayOutputStream.html . C Canvas::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Canvas.html, a $Component that permits graphics. CardLayout::@#LayoutManager, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.CardLayout.html A $LayoutManager which allows only one of its components to visible at any one time as selected byte show(...) method. Character::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Character.html, reference to a 16bit Unicode symbol. Checkbox::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Checkbox.html CheckboxGroup::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.CheckboxGroup.html CheckboxMenuItem::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.CheckboxMenuItem.html Choice::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Choice.html Class::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Class.html, meta-information about the class of an object. ClassCastException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ClassCastException.html ClassCircularityError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ClassCircularityError.html ClassFormatError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ClassFormatError.html ClassLoader::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ClassLoader.html ClassNotFoundException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ClassNotFoundException.html Cloneable::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Cloneable.html, $interface, classes that allow their objects to copied to create a new $Object with the same data store. CloneNotSupportedException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.CloneNotSupportedException.html Color::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Color.html ColorModel::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.ColorModel.html Compiler::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Compiler.html Component::@$Object, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Component.html Components in a Graphic User Interface including: $Button, $List, $TextField, $TextArea, $CheckBox, $CheckBoxGroup, $Dialog, $Frame, $Scrollbar, $Choice, $Canvas, $Frame, $Panel, $Window. Container::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Container.html A class of graphical User interface objects that can contain a varying number of other graphic objects ($Component). All Containers have a $LayoutManager and a way to add and remove components. ContentHandler::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.ContentHandler.html ContentHandlerFactory::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.ContentHandlerFactory.html CropImageFilter::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.CropImageFilter.html . D DatagramPacket::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.DatagramPacket.html DatagramSocket::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.DatagramSocket.html DataInput::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.DataInput.html DataInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.DataInputStream.html DataOutput::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.DataOutput.html DataOutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.DataOutputStream.html Date::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Date.html DebuggerCallback::=http://www.javasoft.com/products/jdk/1.2/docs/api/sun.tools.debug.DebuggerCallback.html Dialog::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Dialog.html Dictionary::@$HashTable, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Dictionary.html Dimension::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Dimension.html, This is an object that can keep track of the int `width` and `hieght` of something. DirectColorModel::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.DirectColorModel.html Double::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Double.html, reference to a double length number. . E EmptyStackException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.EmptyStackException.html Enumeration::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Enumeration.html Java's iterator. EOFException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.EOFException.html Error::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Error.html Event::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Event.html Exception::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Exception.html . F File::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.File.html FileDescriptor::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FileDescriptor.html FileDialog::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.FileDialog.html FileInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FileInputStream.html FilenameFilter::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FilenameFilter.html FileNotFoundException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FileNotFoundException.html FileOutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FileOutputStream.html FilteredImageSource::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.FilteredImageSource.html FilterInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FilterInputStream.html FilterOutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.FilterOutputStream.html Float::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Float.html, single length floating point object. FlowLayout::@#LayoutManager, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.FlowLayout.html A $LayoutManager a manager that places objects, in the order added across the component and then row by row. Or in columns. In each row items can be centered, left, or right aligned. Font::@$Object, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Font.html In JDK1.0 the commonest fonts are Helvetica, TimeRoman, and Courier which caused copyright problems. The names have been changed to SanSerif, Serif, and Monospaced in JDK1.1. This class also defiines constants like Font.BOLD, Font.ITALIC, and Font.PLAIN. FontMetrics::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.FontMetrics.html Frame::@$Window, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Frame.html . G Graphics::@$Object, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Graphics.html A Graphics object knows how to draw and fill: Rectangles (plain, 3D, or with rounded corners), ovals, arcs, lines, strings, in different $Color's, and how to clear rectangles. GridBagConstraints::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.GridBagConstraints.html GridBagLayout::@$LayoutMananger, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.GridBagLayout.html A $LayoutManager that is based on a grid but where each component can take up any non-overlapping (tiled) rectangular set of grid rectangles. Complex and clever. GridLayout::@$LayoutManager, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.GridLayout.html A $LayoutManager a simple two dimensional grid with fixed dimensions. . H Hashtable::@$Object, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Hashtable.html . I IllegalAccessError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IllegalAccessError.html IllegalAccessException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IllegalAccessException.html IllegalArgumentException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IllegalArgumentException.html IllegalMonitorStateException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IllegalMonitorStateException.html IllegalThreadStateException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IllegalThreadStateException.html Image::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Image.html ImageConsumer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.ImageConsumer.html ImageFilter::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.ImageFilter.html ImageObserver::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.ImageObserver.html ImageProducer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.ImageProducer.html IncompatibleClassChangeError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IncompatibleClassChangeError.html IndexColorModel::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.IndexColorModel.html IndexOutOfBoundsException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.IndexOutOfBoundsException.html InetAddress::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.InetAddress.html InputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.InputStream.html Insets::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Insets.html InstantiationError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.InstantiationError.html InstantiationException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.InstantiationException.html Integer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Integer.html InternalError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.InternalError.html InterruptedException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.InterruptedException.html InterruptedIOException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.InterruptedIOException.html IOException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.IOException.html . L Label::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Label.html LayoutManager::=$BorderLayout | $CardLayout | $FlowLayout | $GridBagLayout | $GridLayout. A class of objects that can control the positioning of components inside a $Container. .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.LayoutManager.html LineNumberInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.LineNumberInputStream.html LinkageError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.LinkageError.html List::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.List.html List of items in a scrollable window allowing the user to select one of them. LocalVariable::=http://www.javasoft.com/products/jdk/1.2/docs/api/sun.tools.debug.LocalVariable.html Long::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Long.html, a reference to a long integer item of data. . M MalformedURLException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.MalformedURLException.html Math::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Math.html, a collection of useful functions and constants. MediaTracker::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.MediaTracker.html MemoryImageSource::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.MemoryImageSource.html Menu::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Menu.html MenuBar::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.MenuBar.html MenuComponent::@$Object, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.MenuComponent.html MenuContainer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.MenuContainer.html MenuItem::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.MenuItem.html . N NegativeArraySizeException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NegativeArraySizeException.html NoClassDefFoundError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NoClassDefFoundError.html NoSuchElementException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.NoSuchElementException.html NoSuchFieldError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NoSuchFieldError.html NoSuchMethodError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NoSuchMethodError.html NoSuchMethodException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NoSuchMethodException.html NullPointerException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NullPointerException.html Number::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Number.html, superclass of $Double, $Float, $Integer, ... NumberFormatException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.NumberFormatException.html . O Object::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Object.html Observable::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Observable.html Observer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Observer.html OutOfMemoryError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.OutOfMemoryError.html OutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.OutputStream.html . P Panel::@$Container, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Panel.html PipedInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.PipedInputStream.html PipedOutputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.PipedOutputStream.html PixelGrabber::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.PixelGrabber.html Point::@$Object, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Point.html This is not a graphic object but an object with two integer coordinates called x and y. Polygon::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Polygon.html PrintStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.PrintStream.html Process::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Process.html Properties::@Dictionary, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Properties.html ProtocolException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.ProtocolException.html PushbackInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.PushbackInputStream.html . R Random::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Random.html RandomAccessFile::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.RandomAccessFile.html Rectangle::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Rectangle.html, this not a grphic object but a record of two co-ordinates (x and y) and a pair of dimensions(width and hieght). It comes with a lot of operations including intersection and union. RGBImageFilter::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.image.RGBImageFilter.html Runnable::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Runnable.html, $interface for Classes of objects that have a public void run() function. A $Runnable object can be execute by a $Thread object in a separate concurrent thread of control. Runtime::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Runtime.html RuntimeConstants::=http://www.javasoft.com/products/jdk/1.2/docs/api/sun.tools.java.RuntimeConstants.html RuntimeException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.RuntimeException.html . S Scrollbar::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Scrollbar.html SecurityException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.SecurityException.html SecurityManager::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.SecurityManager.html SequenceInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.SequenceInputStream.html ServerSocket::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.ServerSocket.html Socket::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.Socket.html SocketException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.SocketException.html SocketImpl::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.SocketImpl.html SocketImplFactory::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.SocketImplFactory.html Stack::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Stack.html, a specialized $Vector. StackOverflowError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.StackOverflowError.html StreamTokenizer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.StreamTokenizer.html String::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.String.html, a fixed sequence of characters. StringBuffer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.StringBuffer.html, a variable sequence of characters. StringBufferInputStream::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.StringBufferInputStream.html StringIndexOutOfBoundsException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.StringIndexOutOfBoundsException.html StringTokenizer::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.StringTokenizer.html System::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.System.html . T TextArea::@$TextComponent, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.TextArea.html TextComponent::@$Component, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.TextComponent.html TextField::@$TextComponent, .See http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.TextField.html Thread::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Thread.html ThreadDeath::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ThreadDeath.html ThreadGroup::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.ThreadGroup.html Throwable::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.Throwable.html, Something that can be used in throw and catch statements. Includes $Exception and $Error. Toolkit::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Toolkit.html . U UnknownError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.UnknownError.html UnknownHostException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.UnknownHostException.html UnknownServiceException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.UnknownServiceException.html UnsatisfiedLinkError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.UnsatisfiedLinkError.html URL::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.URL.html URLConnection::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.URLConnection.html URLEncoder::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.URLEncoder.html URLStreamHandler::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.URLStreamHandler.html URLStreamHandlerFactory::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.net.URLStreamHandlerFactory.html UTFDataFormatException::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.io.UTFDataFormatException.html . V Vector::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.util.Vector.html, a dynamic array. VerifyError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.VerifyError.html VirtualMachineError::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.lang.VirtualMachineError.html . W Window::=http://www.javasoft.com/products/jdk/1.2/docs/api/java.awt.Window.html, Either a $Dialog or a $Frame. .Close.Net API_1_2 . The Java Application Programmers Interface 1.1.5 .Set (Index_1_1): .See http://www.javasoft.com/products/jdk/1.1/docs/index.html (ClassList_1_1): .See http://www.javasoft.com/products/jdk/1.1/docs/relnotes/classlist.html (Packages_1_1): .See http://www.javasoft.com/products/jdk/1.1/docs/api/packages.html (Names_1_1): .See http://www.javasoft.com/products/jdk/1.1/api/a-names.html (Tree_1_1): .See http://www.javasoft.com/products/jdk/1.1/api/tree.html .Close.Set API_1_1::=following .Net The JDK uses the previous Application Programmer's Interface $API_1_0 plus new features .See http://www.javasoft.com/products/jdk/1.1/docs/relnotes/features.html some of which are defined given below. . New Event Handling Many components(objects in class $Component) implement a function like this: `component`.add`Type`Listener(`l`) where `l` is in a class that implements the `Type`Listener interface and `Type` is a name of a type of $AWTEvent. The `Type`Listener interface defines a a void function action`something`(`Type`Listener event). The `something` varies with the `Type` of the event. Another class can define a class that implements `Type`Listener by handling the events. It constructs an object of this tpe and passes it to the component using the add`Type`Listener function. When events occur the implemented function is called with arguments defining the event. .As_is anXListener---implements--->interface----used by---->aComponent .As_is anXListener-passed by-addXListener(anXListener)-to-->aComponent .As_is anXListener<------gets called when an XEvent hits----aComponent A more detailed model using the Unified Modeling Language can be downloaded: .See http://www/dick/samples/listener.mdl and viewed with Rational Rose. To support this model Java1.2 makes it easier to construct and object and and describe its class in a single statement .See http://www/dick/samples/java.syntax.html#anonymous_class_object -- without having to name the class. AWTEvent::$abstract_class=$ActionEvent | $ItemEvent | $WindowEvent | $ComponentEvent | $AdjustmentEvent | $MouseEvent | $KeyEvent | $FocusEvent. All these events have a `getSource()` method that tells a listener which object generated the event. The event handling uses grouped classes of AWTEvents, $addListener functions, Listener interfaces, and Adapter classes. To implement one of the interfaces below the class must (1) state that it "implements Interface_name" in its header and (2) define all the functions listed in the interface. The Adapter classes supply default empty functions for the functions in the interface, so by extending an Adapter class you only have to defined the listening functions that do something. .Table .Row Event Sent by To Added by Adapter .Row ActionEvent .Item Button,List,MenuItem,TextField .Item ActionListener:actionPerformed .Item addActionListener .Item ActionAdapter .Row AdjustmentEvent .Item Scrollbar .Item AdjustmentListener:adjustmentValueChanged .Item addAdjustmentListener .Item AdjustmentAdapter .Row ComponentEvent .Item Dialog, Frame .Item ComponentListener:componentMoved,componentHidden,componentResized,ComponentShown .Item addComponentListener .Item ComponentAdapter .Row FocusEvent .Item any Component .Item FocusListener:focusGained,focusLost .Item addFocusListener .Item FocusAdapter .Row ItemEvent .Item Checkbox,CheckboxMenuItem,Choice,List .Item ItemListener:itemStateChanged .Item addItemListener .Item ItemAdjuster .Row KeyEvent .Item any Component .Item KeyListener:keyPressed,keyReleased,keyTyped .Item addKeyListener .Item KeyAdapter .Row MouseEvent .Item Canvas,Dialog,Frame,Panel,Window. .Item MouseListener:mouseDragged,mousePressed,mouseClicked,mouseEntered,mouseExited .Item addMouseListener .Item MouseAdapter .Row WindowEvent .Item Dialog,Frame. .Item WindowListener:windowClosing, windowOpened, windowIconified,windowDeiconified,windowClosed .Item addWindowListener .Item WindowAdapter .Row MouseMovedEvent .Item etc .Close.Table ActionEvent::@$AWTEvent, sent by $Button, $List, $MenuItem, and $TextField. addActionListener::=`add $ActionListener (_) to the components list of listeners` ActionListener::$interface= { actionPerformed($ActionEvent) }. ActionAdapter::$abstract_class, provides empty functions for the interface. AdjustmentEvent::@$AWTEvent, sent by $Scrollbar addAdjustmentEvent::=`add $AdjustmentListener (_) to the components list of listeners` AdjustmentListener::$interface={ adjustmentValueChanged($AdjustmentEvent)}. AdjustmentAdapter::$abstract_class, provides empty functions for the interface. ComponentEvent::@$AWTEvent, sent by $Dialog and $Frame. addComponentListener::=`add $ComponentListener (_) to the components list of listeners` ComponentListener::$interface={componentMoved($ComponentEvent),componentHidden($ComponentEvent),componentResized($ComponentEvent),componentShown($ComponentEvent)}. ComponentAdapter::$abstract_class, provides empty functions for the interface. FocusEvent::@$AWTEvent, could be sent by any $Component. addFocusListener::=`add $FocusListener (_) to the components list of listeners` FocusListener::$interface={ focusGained($FocusEvent), focusLost($FocusEvent)}. FocusAdapter::$abstract_class, provides empty functions for the interface. ItemEvent::@$AWTEvent, sent by objects in classes $Checkbox, $CheckboxMenuItem, $Choice, $List. addItemListener::=`add $ItemListener (_) to the components list of listeners` ItemListener::$interface={ itemStateChanged($ItemEvent) }. ItemAdapter::$abstract_class, provides empty functions for the interface. IOEvent::=$KeyEvent | $MouseEvent. KeyEvent::@$AWTEvent, can be sent by any object in class $Component. addKeyListener::=`add $KeyListener (_) to the components list of listeners` KeyListener::$interface={ keyPressed($KeyEvent), keyReleased($KeyEvent). keyTyped($KeyEvent)} KeyAdapter::$abstract_class, provides empty functions for the interface. MouseEvent::@$AWTEvent, Can be sent by objects that are: $Canvas, $Dialog, $Frame, $Panel, $Window. addMouseListener::=`add $MouseListener (_) to the components list of listeners` MouseListener::$interface={ mouseDragged($MouseEvent),mousePressed($MouseEvent),mouseClicked($MouseEvent),mouseEntered($MouseEvent),mouseExited($MouseEvent)}. MouseAdapter::$abstract_class, provides empty functions for the interface. There is also a set of MouseMovedEvents... WindowEvent::@$AWTEvent, can be sent by objects in $Dialog and $Frame. addWindowListener::=`add $WindowListener (_) to the components list of listeners` WindowListener::$interface={ windowClosing($WindowEvent), windowOpened($WindowEvent), windowIconified($WindowEvent),windowDeiconified($WindowEvent),windowClosed($WindowEvent)}. WindowAdapter::$abstract_class, provides empty functions for the interface. . Character-based Input/Output These echo the structure of $InputStream and $OutputStream: Reader::$abstract_class=$BufferedReader | $CharArrayReader | $FileReader | $PipedReader | $StringReader. BufferedReader::@$Reader. CharArrayReader::@$Reader. FileReader::@$Reader. PipedReader::@$Reader. StringReader::@$Reader. Writer::$abstract_class=$BufferedWriter | $CharArrayWriter | $FileWriter | $PipedWriter | $StringWriter. BufferedWriter::@$Writer. CharArrayWriter::@$Writer. FileWriter::@$Writer. PipedWriter::@$Writer. StringWriter::@$Writer. . Miscelaneous New Classes MenuShortCut::@$Object. .Close.Net . Glossary abstract_class::=`A class with one or more abstract functions. No objects can be made for this class but there can be references to abstract_classes and classes derived from them that are not abstract. interface::=`a list of public abstract methods(functions) that other classes can implement. A variable can refer to any object that implements an interface but no objects can be created for an interface directly`. .Close Java Application Programmers Interface