Internet Foundation Classes
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.
- 이벤트 메커니즘은 아직 [3]미가공 상태이며 이벤트루프에 직접 액세스 할 필요가 있는 경우가 있습니다.
예
안녕 세계
이것은 IFC의 고전적인 Hello 월드 프로그램입니다.
수입품 netscape.application.*; 수입품 netscape.discape.*; 일반의 학급 안녕 세계 확장 어플 { 일반의 무효 초기화() { 잘 하는 군요.초기화(); // 텍스트 필드 만들기 텍스트 필드 텍스트 필드 = 신규 텍스트 필드(100, 24, 128, 24); // 텍스트 필드에 표시할 문자열을 설정합니다. 텍스트 필드.setStringValue 값('헬로 월드'); // 텍스트 필드를 보기 계층에 추가합니다. main Root View(mainRootView)().추가 서브뷰(텍스트 필드); } // 이 메서드를 사용하면 HelloWorld를 스탠드아론 어플리케이션으로 실행할 수 있습니다. 일반의 정적인 무효 주된(스트링 args[]) { 안녕 세계 앱. = 신규 안녕 세계 (); 외부 창 메인 윈도 = 신규 외부 창(); 앱..set Main Root View(메인 윈도.root 뷰()); 크기 크기 = 메인 윈도.window Size For Content Size(320, 200); 메인 윈도.사이즈 대상(크기.폭, 크기.높이); 메인 윈도.쇼우(); 앱..달려.(); } }
동등한 Java Swing 코드와 비교하려면:
수입품 javax.displaces.displaces 를 클릭합니다.*; 일반의 학급 안녕 세계 확장 JFrame { 일반의 안녕 세계() { set Default Close 조작(폐기_ON_닫기); 더하다(신규 JLABEL("안녕, 월드!")); } 일반의 정적인 무효 주된(스트링[] args) { 안녕 세계 앱. = 신규 안녕 세계(); 앱..포장하다(); 앱..set Visible(진실의); } }
레퍼런스
- ^ "Sun and Netscape to jointly develop Java Foundation Classes". Netscape Communications Corporation. 1997-04-02. Archived from the original on 2012-05-09. Retrieved 2007-07-14.
- ^ "IFC 1.1 guide - Persistence". 2000-06-15. Retrieved 2007-07-15.
- ^ "IFC 1.1 guide - Targets and commands". 2000-06-15. Retrieved 2007-07-15.
외부 링크
마지막 장소, IFC 다운로드 장소:
- ftp-Server 1 Uni-Potsdam
- ftp-Server 2 Uni-Potsdam
- ftp-Server 3 Uni-Potsdam
- ftp-Server Uni-Bochum
- ftp-Server SunSite
모두 검색 대상
web-archive 에서는 모든 파일을 마지막으로 찾을 수 있습니다.
기타 IFC는 다음 URL에서 찾을 수 있습니다.