远程运行时 Swing JDialog 速度缓慢

发布于 2024-07-09 05:48:33 字数 195 浏览 5 评论 0原文

我在通过 X11 远程运行 GUI 时遇到了 JDialogs 的性能问题。 有人知道解决方法吗?

当我在本地计算机上运行 GUI 时,它很快,但有时我们需要在远程服务器上运行它,这会导致显示对话框之前出现明显的延迟。 创建和显示它们大约需要 2 秒。

该问题似乎仅适用于模态 JDialog(包括 JOptionPanes)。

I have experienced performance problems for JDialogs while running my GUI remotely over X11. Does anyone know a workaround?

The GUI is fast when I run it on my local machine, but sometimes we need to run it on a remote server, which causes a significant lag until the dialog is displayed. It takes about 2 seconds to create and display them.

The problem only seems to apply for modal JDialogs (including JOptionPanes).

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

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

发布评论

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

评论(1

世界和平 2024-07-16 05:48:34

我在将纹理图像应用于窗口背景时遇到了外观和感觉问题。 它在 GUI 设计器的盒子上运行得很好,但是当我们在 LTSP X 终端上尝试它时,它慢得要命。 我们改为无纹理的外观和感觉,事情变得好多了。

I had that problem with a look and feel that applied a textured image to the background of my windows. It ran fine on the gui designer's box, but when we tried it on a LTSP X-terminal, it was dog slow. We changed to an untextured look and feel, and things got much better.

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