Introduction to WFC Programming

Windows Foundation Classes for Java (WFC) is a set of class libraries combined with a Rapid Access Development (RAD) tool that makes it easy to build fast and powerful applications and components for the Microsoft platform using the Java language. WFC brings the Java language to the Win32 platform and the Dynamic HTML (DHTML) object model of Internet Explorer 4.0. This means you can use Java to solve real problems today and know that you have a smooth migration path into the future.

A goal of WFC is to provide complete and compelling component and programming models for Java. Because Java provides a unique set of advantages in terms of language features, it is the first language of choice for developing Windows and DHTML applications using this new programming model.

WFC enables developers to quickly build rich Win32 applications and ActiveX controls in Java by using the Visual J++ Designer to drag and drop controls onto a form, set properties, and generate event handlers. Developers can also easily access data on a server from their applications and deploy their applications as Windows .EXE files or Internet URLs. Moreover, they can build their own WFC components by using the designer or writing code directly in the editor. Finally, developers can access the DHTML object model using Java classes.

The rich application model takes advantage of the J/Direct technology to access the Win32 API. However, it makes it much easier to program by taking care of details like Window message-handling procedures, message pumps, messages, window handles, and so forth. The application model is open, so experienced Win32 programmers can intermix J/Direct calls with WFC classes to add any functionality available on the Win32 platform.

If you are looking for a quick ôhands-onö introduction to using Visual J++ to develop a WFC application, take a few minutes and walk through the test drive, Creating an Application with WFC Controls. This tutorial steps you through building and running a simple WFC application.

To view the WFC API reference, see Windows Foundation Classes for Java.