Compose Desktop 基于 AWT,这是永久性的决定吗?
我有一个 Swing 组件,我想使用 Compose 从头开始重新实现它。我发现,许多 Compose 功能只是包装了 AWT。例如,PointerEvent
类有一个 nativeEvent
,它是 java.awt.event.MouseEvent 的实例。
依赖这些 AWT 是否安全类型? Compose 最终会取代它们吗?
I have a Swing component that I'd like to re-implement from scratch using Compose. What I've found, is that many of the Compose features just wrap AWT. For example, PointerEvent
class has a nativeEvent
which is an instance of java.awt.event.MouseEvent.
Is it safe to rely on these AWT types? Will Compose eventually replace them or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
维护者在 GitHub 中创建了一个问题来解决这个问题。
另外,这是另一个相关的 GitHub 问题。
The maintainers have created an issue in GitHub to address that.
Also, here is another related GitHub issue.