工具提示导致 swing/netbeans-rcp 中出现死锁

发布于 2024-08-22 10:18:23 字数 317 浏览 7 评论 0原文

我有一个基于 netbeans 平台的应用程序。 它有一个大纲视图,有几列。当我最大化我的应用程序时。并将鼠标悬停在最右边的列上以显示工具提示(由于屏幕结束而必须进行调整)。应用程序挂起(或者更确切地说,事件队列被阻止)。有时它会在几秒钟后再次开始运行,但大多数情况下我必须终止该应用程序。

它在 Container.getTreeLock 中陷入僵局。 仅当窗口最大化时
我没有对显示的字符串进行任何计算。
我尝试了几个java6update版本
我尝试过升级netbeans平台
当死锁时,我的代码都不在堆栈跟踪中。

我没有想法,有人能指点一下吗?

I have a netbeans platform based app.
It has an outlineview, with several columns. when i have my app maximised. and hover over the right most column to display the tooltip (that has to be adjusted due to end of screen). the application hangs (or rather, eventqueue is blocked). Sometimes it starts running again after a few seconds, but mostly i have to kill the application.

Its in Container.getTreeLock its deadlocked.
It is only when the window is maximised
I don't have any computation for the string that is displayed.
I have tried several java6update versions
I have tried upgrading netbeans platform
None of my code is in the stacktrace when it is deadlocked.

I'm out of ideas, does anyone have any pointers?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暖心男生 2024-08-29 10:18:23

如果没有看到您的代码,您可能没有遵循 EDT 规则,该规则本质上表明与 GUI 的任何交互都必须在事件调度线程上完成。

以下是一些可能有用的指针:

Not seeing your code, you may not be following the EDT rule which essentially says any interaction with the GUI must be done on the Event Dispatch Thread.

Here are a couple of pointers that may be useful:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文