X11 转发影响 Java Swing GUI 下拉菜单 - 项目不可选择,菜单立即折叠 [英] X11 forwarding affects Java Swing GUI dropdowns - Items not selectable, Menus collapse immediately

查看:92
本文介绍了X11 转发影响 Java Swing GUI 下拉菜单 - 项目不可选择,菜单立即折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有一个Java Swing应用程序,该应用程序在Linux服务器上运行,并通过X11转发向X显示.Cygwin正在我的工作站上运行.使用具有X11转发功能的PuTTY,然后使用ssh -XY与服务器建立连接.

Have a Java Swing app that is running on a Linux server and is being X displayed back via X11 forwarding. Cygwin is running on my workstation. Connection is made to the server using PuTTY with X11 forwarding and then ssh -XY .

应用程序启动正常,但某些 GUI 元素(主要是下拉菜单)行为不正确.某些菜单在打开后立即关闭(单击闪烁即会打开/关闭.)其他菜单则不会使用鼠标来选择/突出显示项目.其他人会选择与我家悬停的物品不同的物品.

Application launches just fine, but certain GUI elements (mostly drop down menus) do not behave correctly. Some menus close immediately after they are opened (the blink open/close when clicked.) Others will not select / highlight items using the mouse. Others will select different items than the one hovered over by my house.

在直接调用时,该应用程序可以在Windows或Linux上正常运行.问题似乎与通过X11查看它特别相关.

The application works just fine on Windows or on Linux when invoked directed. Problem seems specifically related to viewing it through X11.

X11是否有可能吞下了一些GUI事件或绘画速度不够快?

Is it possible X11 is swallowing some GUI events or not repainting fast enough?

推荐答案

这个问题似乎很老,但是我也遇到了同样的问题.

This questions seems quiet old but I just had the same issue.

一个解决方案可能是对连接使用压缩(-C)和其他算法(速度更快)(-c cipher1,cipher2).

A solution may be to use compression (-C) and an other algorithm (which is faster) for the connection (-c cipher1, cipher2).

例如.:

ssh -X -C -c blowfish-cbc,arcfour username@host

希望有帮助

这篇关于X11 转发影响 Java Swing GUI 下拉菜单 - 项目不可选择,菜单立即折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆