import edu.mit.ai.psg.jexa.*; import edu.mit.ai.psg.ui.outliner.*; import java.awt.*; /** Example of using a custom renderer; may be run either as an application or as an applet. @author CarlManning, caroma@ai.mit.edu<br> Copyright (c) 1999 Massachusetts Institute of Technology **/ public class ContainerChildApplet extends JexaApplet { /** Example of using ContainerChildRenderer in application **/ public static void main(String[] ignore) { // initialize outlineMaker with Jexa and its renderers Jexa.ensureInitialized(); // replace Jexa's ContainerRenderer ContainerChildRenderer.initialize(Outliner.outlineMaker); // create an example container with components to examine Frame f = SamplePanesApplet.makeFrame(); f.show(); // examine container Jexa.examine(f); // show debug menu items Jexa.dbgLev = 1; } /** Example of using ContainerChildRenderer in Applet **/ public void init() { Jexa.ensureInitialized(); ContainerChildRenderer.initialize(Outliner.outlineMaker); super.init(); } // subject is other applets on same page as returned by // Jexa.getObjectToExamine(). }