Note that you can move the alias in the tree to adjust the object hierarchy at your desire. For instance, you can make some controls direct children of the process item. For complete information on mapping objec
Suppose you write a group of classes that represent graphic objects, such as circles, rectangles, lines, and points. You also write an interface,Draggable, that classes implement if they can be dragged with the mouse. //in the Draggable.java filepublic interface Draggable { ... } //in the...
You can find the entire source for this example in TopLevelDemo.java. Although the example uses a JFrame in a standalone application, the same concepts apply to JApplets and JDialogs. Here's the containment hierarchy for this example's GUI: As the ellipses imply, we left some details out...