Posted By:
Xinhua_Liu
Posted On:
Thursday, March 6, 2003 10:37 PM
Look at the primary code:
JPanel panel=new JPanel();
JSelfCreat jsc;
............
panel.add(jsc);
............
JScrollPane jsp=new JScrollPane();
jsp.getViewport().add(panel);
Now the problem is that when mouse dragged from the self created componnent, the Viewport of jsp auto go to the top of the panel. I hope when the mouse dragged, the viewport of jsp is fixed. So how to solve it? Is there any existed API supportint it?
Thanks