Creating the User Interface
When you create a Java Client WebObjects application project, Project Builder puts a nib file in the Interfaces suitcase of the ClientSideJava subproject. A nib file is primarily a description of a user interface (or part of a user interface); it is created by the Interface Builder application and it can be archived along with other resources of your application. The nib file in the ClientSideJava subproject, however, is quite unlike the nib files in typical applications. When the EOJavaClient palette is loaded and you construct a user interface, the objects that a nib file contains are derived from the Yellow Box frameworks and the Java Foundation Classes (JFC), or Swing. They thus can be downloaded to Java Client applets that live on the client.-
Open the StudioManager.nib file.
In the project browser navigate to Subprojects ClientSideJava Interfaces English.
-
EOPalette.palette includes two
objects: EODisplayGroup and EOEditingContext.
-
EOJavaClientPalette.palette has no visible objects but contains the code that creates Swing objects equivalent to the Yellow Box objects on the standard palettes.
-
EOPalette.palette includes two
objects: EODisplayGroup and EOEditingContext.
-
Load the required palettes.
In Interface Builder, choose Tools Palettes Open.
In the Open Palette panel, navigate to NEXT_ROOT/Developer/Palettes.
Double-click EOPalette.palette .
Perform the same sequence of steps, but this time load EOJavaClientPalette.palette .
-
Drag the Studio entity from EOModeler into the window.
-
Examine the EODisplayGroup in the Inspector.
Select the Studio EODisplayGroup in the nib file window.
Make sure that the "Fetch on load" checkbox is checked.
-
Test the interface.
On Mac OS X Server, choose Document Test Interface. Click in the menu bar to exit the test.
On Windows NT, choose File Test Interface. Choose File Exit to exit the test.
Formatting Currency Values and Dates
Adding Action Methods
© 1999 Apple Computer, Inc. (Last Updated 13 Sep 99)