开发者

focusing and following an object in a swing JPanel

i want to focus and keep following a moving object(an image or drawn shape) which is inside a JPanel.tried using开发者_JS百科 JScrollPanes but could not get the scroll pane to follow the object when it goes out of the view-able frame.

thanx.


panel.scrollRectToVisible(...);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜