Java:Jscrollpane 或 Jsplitpane 的自定义光标?
有什么方法可以在 jsplitpane 面板中为 jscrollpane 设置图像中的自定义光标吗?
现在我得到一个显示在整个 Jframe 中的自定义图标,我希望它仅限于特定的 jscrollpane。
无论如何要让它显示在重量级组件之上?
any way to set custom cursor from image for a jscrollpane in a jsplitpane panel?
right now I get a custom icon that displays in the entire Jframe and I would like it limited to a specific jscrollpane.
anyway to make it display on top of heavyweight component?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
同意,我发现我对
JScrollPane
的setCursor
存在一些问题,必须在 EDT 上调用此方法,(在 EDT 上)在大多数情况下对我来说都正确我建议使用从
Native OS
返回的默认Cursors
,或者使用JWindow
创建自定义光标
或????agreed, I saw and I have some issues with
setCursor
to theJScrollPane
, this method must be called on EDT, (on EDT) in most of cases works for me correctlyI'd suggest use default
Cursors
returned fromNative OS
, or useJWindow
for creatingCustom Cursor
or ????