16-08-2008, 11:22 AM
Ever wanted prefuse to have scrollbars?
I thought: dragging with mouse is so cool, I don“t need that.
But as soon as I embedded prefuse with my swing gui I thought: hm scrollbars would be nice.
So here is my first version of a "scrollpane emulator" for prefuse.
If you find bugs feel free to contact me or correct them (where I would appreciate it if you would post that here).
You can create the pane like that:
Then simply add the pane to your container and have months of fun scrolling around 
[attachment=343]
I thought: dragging with mouse is so cool, I don“t need that.
But as soon as I embedded prefuse with my swing gui I thought: hm scrollbars would be nice.
So here is my first version of a "scrollpane emulator" for prefuse.
If you find bugs feel free to contact me or correct them (where I would appreciate it if you would post that here).
You can create the pane like that:
Code:
m_scrollPane = new PrefuseJScrollPane(m_display);
[attachment=343]