I have a JTreeView thats added to my JScrollPane, then the JScrollPane is added to the JPanel.
This works but I am wondering how i can get mouse drags to work on it instead of the scrollbar.
I tried scrollPane.setDragEnabled(true); as you can see below but that doesnt work.
Anyone have any ideas?
Another question, is Aswing fine being used on a device android/iphone using adobe air? Anything I should know before i go down this path.
Thanks, Code is below.
//add the tree to a scroll pane, then the panel to support scrolling
var scrollPane:JScrollPane = new JScrollPane(tree, JScrollPane.SCROLLBAR_AS_NEEDED, JScrollPane.SCROLLBAR_AS_NEEDED);
scrollPane.setDragEnabled(true);
pane.append(scrollPane, BorderLayout.CENTER);