当前位置: 技术问答>java相关
Visual J++ 6.0 的介绍!希望大家喜欢看E文(1)
来源: 互联网 发布时间:2015-07-25
本文导语: Evaluation Guide High Functionality Java Applications Windows Foundation Classes (WFC) is an application framework for Microsoft Windows® based on Microsoft J/Direct® application programming interface technology. WFC is an object-oriented set of...
Evaluation Guide
High Functionality Java Applications
Windows Foundation Classes (WFC) is an application framework for Microsoft Windows® based on Microsoft J/Direct® application programming interface technology. WFC is an object-oriented set of class libraries written in the Java language that gives developers a familiar way to develop applications for the Windows platform. WFC represents a great improvement over past Java development, giving developers simplified access to the high functionality of the Windows platform. Using WFC, developers can build the most robust Windows-based applications with the Java language.
Windows Foundation Classes
WFC simplifies and enhances Java development by integrating the Windows platform with the Java language. WFC provides classes for basic and advanced user interface routines as well as several Windows system-level routines. It enables developers to rapidly build applications and components for the Windows platform by encapsulating the Win32 API with a series of object-oriented classes and methods. While WFC is framework for application development, it is also a component model. In fact, components built with WFC can be used in the visual design of user interfaces. Where Windows-based programming constructs of the past were either one or the other, WFC is both, giving developers the utmost in flexibility when developing applications for the Windows platform.
How it Works
WFC is built using the J/Direct technology that Microsoft first supplied with its Software Development Kit for Java 2.0 in Summer 1997. J/Direct allows developers to import and use any method contained within a Windows Dynamically Linked Library. Where in the past developers were forced to use the slow and functionally deficient Java middleware APIs, J/Direct gives programmers direct access to the Windows platform (see Figure 1). Using J/Direct, the Windows Foundation Classes access the core Win32 API directly, but presenting the API in an object-oriented, Java-friendly manner. With WFC, developers have the ease of the Java language and the power of the Windows platform to assist them in developing commercial-quality applications.
Figure 1: J/Direct circumvents the Java middleware APIs, giving developers direct access to the underlying operating system.
Basic Hierarchy
WFC is designed to give developers a layer of abstraction above and beyond the Win32 API. Sporting an object-oriented hierarchy of classes, WFC helps programmers easily design and develop Windows-based solutions in the Java language.
Figure 2: The WFC class hierarchy makes Windows development simple by giving programmers an easy-to-use object model for the Win32 API.
GUI Classes
WFC also provides a series of objects that wrap the main Windows-based intrinsic controls. The list boxes, buttons, tabbed panels, and other GUI elements that comprise the look and feel of the Windows platform are readily available for developers to use within Microsoft Visual J++® 6.0. Additional controls, including date/time pickers, animation controls, and image display objects, help developers give their applications a more polished and consistent appearance. Application interfaces can be designed by simply dragging and dropping the GUI controls from the Toolbox onto the WFC Designer (see the next section, "Enhanced Programmer Productivity").
For those times when developers prefer to write code, building an application using the WFC GUI classes involves first extending the Form object and then creating any controls that are desired. In the example below, the Form contains one Button object.
// Form lets the application have a window
public class MyForm extends Form
{
Button myButton = new Button();
public MyForm()
{
// set the size of the form
this.setSize(new Point(300, 300));
// set the location and label for the button
myButton.setLocation(new Point(40, 60));
myButton.setSize(new Point(210, 70));
myButton.setText("button1");
}
}
System Classes
WFC also includes support for the direct manipulation of the underlying operating system. The objects that make up the system classes give developers the ability to create applications that harness the power of the Windows platform through encapsulation of file and memory management objects. In addition, developers who require more control over how their applications interact with the underlying platform can use J/Direct (on which WFC is based) to get to low-level Windows functionality on their own.
High Functionality Java Applications
Windows Foundation Classes (WFC) is an application framework for Microsoft Windows® based on Microsoft J/Direct® application programming interface technology. WFC is an object-oriented set of class libraries written in the Java language that gives developers a familiar way to develop applications for the Windows platform. WFC represents a great improvement over past Java development, giving developers simplified access to the high functionality of the Windows platform. Using WFC, developers can build the most robust Windows-based applications with the Java language.
Windows Foundation Classes
WFC simplifies and enhances Java development by integrating the Windows platform with the Java language. WFC provides classes for basic and advanced user interface routines as well as several Windows system-level routines. It enables developers to rapidly build applications and components for the Windows platform by encapsulating the Win32 API with a series of object-oriented classes and methods. While WFC is framework for application development, it is also a component model. In fact, components built with WFC can be used in the visual design of user interfaces. Where Windows-based programming constructs of the past were either one or the other, WFC is both, giving developers the utmost in flexibility when developing applications for the Windows platform.
How it Works
WFC is built using the J/Direct technology that Microsoft first supplied with its Software Development Kit for Java 2.0 in Summer 1997. J/Direct allows developers to import and use any method contained within a Windows Dynamically Linked Library. Where in the past developers were forced to use the slow and functionally deficient Java middleware APIs, J/Direct gives programmers direct access to the Windows platform (see Figure 1). Using J/Direct, the Windows Foundation Classes access the core Win32 API directly, but presenting the API in an object-oriented, Java-friendly manner. With WFC, developers have the ease of the Java language and the power of the Windows platform to assist them in developing commercial-quality applications.
Figure 1: J/Direct circumvents the Java middleware APIs, giving developers direct access to the underlying operating system.
Basic Hierarchy
WFC is designed to give developers a layer of abstraction above and beyond the Win32 API. Sporting an object-oriented hierarchy of classes, WFC helps programmers easily design and develop Windows-based solutions in the Java language.
Figure 2: The WFC class hierarchy makes Windows development simple by giving programmers an easy-to-use object model for the Win32 API.
GUI Classes
WFC also provides a series of objects that wrap the main Windows-based intrinsic controls. The list boxes, buttons, tabbed panels, and other GUI elements that comprise the look and feel of the Windows platform are readily available for developers to use within Microsoft Visual J++® 6.0. Additional controls, including date/time pickers, animation controls, and image display objects, help developers give their applications a more polished and consistent appearance. Application interfaces can be designed by simply dragging and dropping the GUI controls from the Toolbox onto the WFC Designer (see the next section, "Enhanced Programmer Productivity").
For those times when developers prefer to write code, building an application using the WFC GUI classes involves first extending the Form object and then creating any controls that are desired. In the example below, the Form contains one Button object.
// Form lets the application have a window
public class MyForm extends Form
{
Button myButton = new Button();
public MyForm()
{
// set the size of the form
this.setSize(new Point(300, 300));
// set the location and label for the button
myButton.setLocation(new Point(40, 60));
myButton.setSize(new Point(210, 70));
myButton.setText("button1");
}
}
System Classes
WFC also includes support for the direct manipulation of the underlying operating system. The objects that make up the system classes give developers the ability to create applications that harness the power of the Windows platform through encapsulation of file and memory management objects. In addition, developers who require more control over how their applications interact with the underlying platform can use J/Direct (on which WFC is based) to get to low-level Windows functionality on their own.
|
淘汰的东西就不要再贴了