Hello there,
Have a JTree which is the client for a JScrollPane. The JScrollPane is added to a panel which is a part of an applet. What does it take to get scroll bar as needed to to the scroll pane.
Have already set the ScrollBar policies as
scrollPane = new JScrollPane(tree);
scrollPane.setVerticalScrollBarPolicy (JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
scrollPane.setHorizontalScrollBarPolicy (JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setPreferredSize(new Dimension (650,400));
this.add(scrollPane);
Thanks
Jack
Have a JTree which is the client for a JScrollPane. The JScrollPane is added to a panel which is a part of an applet. What does it take to get scroll bar as needed to to the scroll pane.
Have already set the ScrollBar policies as
scrollPane = new JScrollPane(tree);
scrollPane.setVerticalScrollBarPolicy (JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
scrollPane.setHorizontalScrollBarPolicy (JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setPreferredSize(new Dimension (650,400));
this.add(scrollPane);
Thanks
Jack