Menu

#4 Scroll Bars

open
nobody
None
5
2002-08-28
2002-08-28
Anonymous
No

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();

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.