i have one strange problem.I add scroolpane to my one of two internal frames,iset both scroobars policy to 'ALLWAYS'.Vertical works normally but horizontal shows scroolbar but not the handle to scroll.Heres is what it looks like
I think its problem in JDK but i should be wrong. I see some Threads here about this ,but no answer,maybe now someone can know. Any ideas what it can be ?
Heres a code that is about the my scrollpane
JInternalFrame waypointsFrame = new JInternalFrame("Waypoints");
mapInternalFrame.getContentPane().add(waypointsFrame, BorderLayout.EAST);
topNode=new DefaultMutableTreeNode("Top node ");
InitializeTree(topNode);
model=new DefaultTreeModel(topNode);
JTree waypointTree = new JTree(model);
waypointTree.setDropMode(DropMode.INSERT);
waypointTreeRef=waypointTree;
waypointTree.setPreferredSize(new Dimension(180, 400));
waypointTree.setMaximumSize(new Dimension(180, 500));
waypointsFrame.setVisible(true);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
scrollPane.setViewportView(waypointTree);
waypointsFrame.getContentPane().add(scrollPane, BorderLayout.NORTH);