Internet Foundation Classes Explained
The Internet Foundation Classes (IFC) is a GUI widget toolkit and graphics library for Java originally developed by Netcode Corporation and first released by Netscape Corporation on December 16, 1996.
The Java IFC was fairly close to the early versions of the Objective-C NeXTStep classes for NeXT. A builder tool was also included under the IFC umbrella that was close in spirit (but significantly limited in functionality) to NeXT's Interface Builder. This ecosystem was attractive to NeXT application developers interested in looking at the Java language.
History
On April 2, 1997, Sun Microsystems and Netscape announced their intention to combine IFC with other technologies to form the Java Foundation Classes.[1]
Ultimately, Sun merged the IFC with other technologies under the name "Swing", adding the capability for a pluggable look and feel of the widgets.
Because its technology has been merged to constitute Swing and Java 2D, IFC is now no longer maintained.
Differences from Swing
Swing drew a lot of features from IFC:
- contrary to AWT, IFC were written in pure Java, thus being (at the time) browser-independent.
- IFC already provided two Layout managers, that would be later included in the standard JDK
- some IFC components were able to read HTML content from URLs, but the implementation was still far from reliable.
However, Swing also improved IFC in a lot of ways:
- IFC did not have a Model-View architecture
- contrary to Swing, the Look and feel of IFC components was written in the components themselves, making it impossible to change it easily.
- IFC components were not JavaBeans. IFC had a specific persistence mechanism,[2] but it was a bit complex, and not compatible with the Java Serialization API.
- event mechanism was still raw,[3] and the Event loop sometimes needed to be accessed directly.
Examples
Hello World
This is the classic Hello world program in IFC:import netscape.application.*;import netscape.util.*;
public class HelloWorld extends Application
To be compared with the equivalent Java Swing code:import javax.swing.*;
public class HelloWorld extends JFrame
External links
The last places, where to download the IFC:
- [ftp://ftp.uni-potsdam.de/pub/WWW/Netscape/navigator/plugins/ifc/1.0/ ftp-Server 1 Uni-Potsdam]
- [ftp://ftp.uni-potsdam.de/pub/WWW/clients/netscape/plugins/ifc/1.0/ ftp-Server 2 Uni-Potsdam]
- [ftp://ftp.uni-potsdam.de/pub/WWW/netscape/navigator/plugins/ifc/1.0/ ftp-Server 3 Uni-Potsdam]
- [ftp://ftp.ruhr-uni-bochum.de/.subdisc1/local/jk.collection/ ftp-Server Uni-Bochum]
- [ftp://ftp.anu.edu.au/sunsite/mnt/disk3/WWW/netscape/navigator/plugins/ifc/1.0/ ftp-Server SunSite]
All find from
The web-archive where is the last place to find really all files:
Additional you can still find IFC here:
Notes and References
- Web site: Sun and Netscape to jointly develop Java Foundation Classes . . 1997-04-02 . 2007-07-14 . dead . https://web.archive.org/web/20120509230952/http://www2.prnewswire.com/cgi-bin/stories.pl?ACCT=104&STORY=%2Fwww%2Fstory%2F84048&EDATE= . 2012-05-09 .
- Web site: IFC 1.1 guide - Persistence. 2000-06-15. 2007-07-15. 2006-11-25. https://web.archive.org/web/20061125135539/http://infodoc.unicaen.fr/docs/Java/guide.IFC1.1/persist.mak.html#1004819. dead.
- Web site: IFC 1.1 guide - Targets and commands. 2000-06-15. 2007-07-15. 2006-11-25. https://web.archive.org/web/20061125140237/http://infodoc.unicaen.fr/docs/Java/guide.IFC1.1/targets.mak.html#100582. dead.