Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't write to textbox in a Swing application executed from console via ssh

I made a swing application with a JFrame. But when I execute this application from the console with java -jar when I am logged via ssh, I cannot write in any of the textboxes. Everything that I write appears in the console rather than in the textbox. See the image attached to show what happens. How can I solve this? Thank you very much in advance.

The problem http://img833.imageshack.us/img833/8688/screenshotoftheproblem.jpg

Javier

like image 474
Javier J. Salmeron Garcia Avatar asked Sep 20 '25 00:09

Javier J. Salmeron Garcia


1 Answers

I had this problem also but solved by using ssh -Y (instead of -X). Found on forums that some java applications requires trusted (-Y) ssh to work properly. Hope that help others.

like image 116
user2386128 Avatar answered Sep 21 '25 15:09

user2386128