I've put a tree into a GraphScrollPane. When I
implement the GraphScrollPane as an applet, the scroll
bars appear but they do not work. Is this a known
problem? Here is the code I used to create the Tree and
the GraphScrollPane:
VisualGraph lVG;
Tree lTree = graphBuild(lS_rdumpNew);
GraphLayoutManager lGLM;
GraphScrollPane lGSP_tree = new GraphScrollPane
();
lGSP_tree.setGraph(lTree);
lVG = lGSP_tree.getVisualGraph();
// Initialise a Tree layout manager
lGLM = new LayeredTreeLayout
(lGSP_tree.getVisualGraph());
lGSP_tree.setGraphLayoutManager(lGLM);
lVG.layout();
getContentPane().add(lGSP_tree2,
BorderLayout.CENTER);
getContentPane().validate();
getContentPane().repaint();