开发者

adding Scrollbar listener to JOGL project

开发者 https://www.devze.com 2022-12-13 02:57 出处:网络
As the开发者_开发问答 title suggests I am trying to add an event listener to a JOGL project to no avail. Any

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

精彩评论

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