Adding Code

The form and menu designers help you to create your initial form class from the design environment and even provide much of the skeleton code for things like event handlers. However, at some point you need to actually write code to make your application do what you want it to.

Event handler methods are called when an event is triggered from a user-interface element on the form, such as a mouse click on a control. The Designer creates skeleton code for these, so it's mostly a matter of filling in the code you want run when the event occurs. For other events, the WFC component model employs a new delegate keyword in the Visual J++ compiler that lets you map event handlers to custom events and provide event handlers for any controls that you write yourself.

In addition to controls and event handlers, there are many other parts of the WFC library that you will find useful.

For more information on the WFC component model and many of the features of WFC, see the Visual J++ readme file (ReadMeVJ.htm).