Creating a Java Client WebObjects Application
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.
In the project browser navigate to Subprojects ClientSideJava Interfaces English.
By default, a blank window appears when Interface Builder is launched. This is the window you'll use to create your user interface.
The Interface Builder application is located in the WebObjects program group. The icon for the application is this:
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 .
The following figure shows the results of dragging an entity into your window. In the nib file window, there's a new EODisplayGroup that's named "Studio" after the entity you dragged in. Note that the nib file window also includes an EOEditingContext object. An EOEditingContext object is added to your application along with the first entity you drag into Interface Builder. Because a document typically only needs one EOEditingContext, this object is only added once.
An entity EODisplayGroup has keys that correspond to the properties in its associated entity. You can examine these keys in the EODisplayGroup Inspector.
Select the Studio EODisplayGroup in the nib file window.