Dirk
iFrame.getContentPane()
.add(new JScrollPane(jTree), BorderLayout.CENTER);
[assuming you have BorderLayout for your contentPane]
-sandip
In article <3795EDCC...@rz.uni-karlsruhe.de>,
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
You put the JTree into a JScrollPane.
Christian
JTree someCoolTree = new JTree();
JScrollPane someCoolPane = new JScrollPane( someCoolTree );
or
JTree someCoolTree = new JTree();
JScrollPane someCoolPane = new JScrollPane();
someCoolPane.add( someCoolTree );
If you check out the Java Tutorial from java.sun.com it has some good stuff
on designing UI with swing. You may want to take a look, it has lots of good
stuff on all the swing components.
Good luck,
Jemiah Westerman
Dirk wrote in message <3795EDCC...@rz.uni-karlsruhe.de>...
>I have a little problem.
>I have a JInternalFrame with a JTree in it. When the JTree exceeds the
>visible area there appear no scrollbars.
>How do I add this scrollbar functionality to the JTree???
Maybe you should embed your JTree within a JScrollPane...
Regards,
Arno Huetter
Dirk schrieb in Nachricht <3795EDCC...@rz.uni-karlsruhe.de>...