// From Lay Networks.com import java.awt.*; class Documentation extends Panel { Documentation(BellmanFord bellmanford) { doctext = new DocText(); grandparent = bellmanford; docopt = new DocOptions(this, grandparent); setLayout(new BorderLayout(10, 10)); add("West", docopt); add("Center", doctext); } BellmanFord grandparent; DocOptions docopt; DocText doctext; }