开发者

adding Scrollbar listener to JOGL project

As the开发者_开发问答 title suggests I am trying to add an event listener to a JOGL project to no avail. Any help would be much appreciated


I've never used JOGL, but from the link it looks like its a 3D painting API. If so then the general rule for custom paiting is that you need to specify the preferred size of the panel where you are doing the custom painting. This is because scrollbars only appear when the preferred size of the panel is greater than the size of the scrollpane. Once the scrollbars appear your listener should work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜