X11 forwarding affects Java Swing GUI dropdowns - Items not selectable, Menus collapse immediately

做~自己de王妃 提交于 2020-01-14 18:58:47

问题


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 .

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.

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

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


回答1:


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

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

Eg. :

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

Hope it helps



来源:https://stackoverflow.com/questions/17366801/x11-forwarding-affects-java-swing-gui-dropdowns-items-not-selectable-menus-co

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!