setBounds
method of the View
class. Primitive
methods provide convenient override points for catching and modifying
behavior.
See http://developer.netscape.com/ for more information about the IFC.
netscape.application
package contains classes and interfaces for creating a user interface and the services it requires, such as event handling, drawing, and drag-and-drop features.
netscape.util
package contains utility classes such as Vector
and Hashtable
, and classes that support object persistence.
ifc10
with the following subdirectories:
classes
directory contains the class library included in the packages netscape.application
and netscape.util
.
examples
directory contains sample applications built with the IFC.
documentation
directory contains an HTML version of this guide and an HTML version of the IFC Reference.
classes
subdirectory beneath the install directory. To access the packages in the IFC library, place the classes
directory in the classpath of the Java Development Kit (JDK) compiler as described in the following platform-specific instructions.
See the Sun JDK documentation for more information about CLASSPATH
.
ifc10
directory is created underneath the installation directory.
CLASSPATH
environment variable.
ifc10
directory at the root of drive C:
,
enter the following line in your autoexec.bat
file:
SET CLASSPATH=C:\ifc10\classes; %CLASSPATH%
ifc10
directory is created underneath the installation directory.
CLASSPATH
environment variable.
ifc10
directory at the root of drive C:
,
double-click the System icon in the Control Panel and create a user
environment variable called CLASSPATH
with the following value:
C:\ifc10\classesIf a
CLASSPATH
variable already exists, append the new path to it using a
semicolon as a separator:
D:\JDK\javalib\classes.zip;C:\ifc10\classes
ifc10
directory is created underneath the installation directory.
CLASSPATH
environment variable.
ifc10
directory in ~/lib
, enter the
following command:
setenv CLASSPATH=~/lib/ifc10/classes
CLASSPATH
environment variable on the Macintosh. To use the IFC class library, you must make sure that it resides in the proper location.
Follow this procedure to set up the IFC for use on the Macintosh:
ifc10
folder is created underneath the installation folder.
System folder
:
Preferences|Netscape|Java|netscape-classes
ifc10|classes
folder into the netscape-classes
folder you created.
netscape-classes
folder should contain the
netscape|application
and the netscape|util
folders.
CLASSPATH
environment variable. See "Installing the Windowing IFC" on page 10.
images
directly below your application's code base to store any image files used by your application.
NetscapeApplet.java
in your code base and compile it with your application. You use the NetscapeApplet
class to load an IFC applet. NetscapeApplet.java
is delivered with each application in the examples
subdirectory.
To build an IFC application, issue the following command in the application's code base:
javac *.javaIf the IFC class library is not in your classpath, you will see an error similar to the following when you attempt to build:
NetscapeApplet.java(4):
Package netscape.application not found in import.
<APPLET CODE="NetscapeApplet" WIDTH=width HEIGHT=height>The
<PARAM NAME="ApplicationClass" VALUE=appName>
</APPLET>
NetscapeApplet
class loads an IFC applet. You must specify NetscapeApplet
as the value of the CODE
attribute and ApplicationClass
as the value of the NAME
attribute. For the appName value, specify the name of the .class
file that you want to launch. The file that you launch must be a subclass of Application
.
If the IFC class library is not in your classpath, you will see an error similar to the following when you attempt to launch an applet:
java.io.FileNotFoundException:\F:\project\Simple\FoundationApplet.class