简体   繁体   English

Apache Pivot光标图像

[英]Apache Pivot cursor image

I'm using Pivot for a desktop application and can't find a way to set an image for the cursor. 我正在将Pivot用于桌面应用程序,但找不到为光标设置图像的方法。 This exists in AWT (via java.awt.Toolkit.createCustomCursor ) but the closest in Pivot is org.apache.pivot.wtk.Mouse.setCursor which takes an enumerated org.apache.pivot.wtk.Cursor , with no option for a custom cursor. 它存在于AWT中(通过java.awt.Toolkit.createCustomCursor ),但Pivot中最接近的是org.apache.pivot.wtk.Mouse.setCursor ,它采用枚举的org.apache.pivot.wtk.Cursor ,对于a自定义光标。

I can't find any way to using an AWT cursor in Pivot, so how can I create a custom cursor in Pivot? 我找不到在Pivot中使用AWT游标的任何方法,那么如何在Pivot中创建自定义游标?

You are correct. 你是对的。 There is no provision at the moment for using custom cursors in Pivot. 目前尚无在Pivot中使用自定义光标的规定。 But, this is a good idea for an enhancement request. 但是,对于增强请求,这是个好主意。 The link for browsing or creating issues for Pivot is here: https://issues.apache.org/jira/browse/PIVOT 用于浏览或创建Pivot问题的链接在这里: https : //issues.apache.org/jira/browse/PIVOT

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM