Scrolling JScrollPanel

34 views
Skip to first unread message

seand

unread,
Oct 3, 2012, 6:44:28 PM10/3/12
to aswing-...@googlegroups.com
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); 

chunbiao huang

unread,
Oct 11, 2012, 12:53:41 AM10/11/12
to aswing-...@googlegroups.com
look     org.aswing.dnd   manger
  eg

2012/10/4 seand <seanwd...@gmail.com>
Reply all
Reply to author
Forward
0 new messages