up vote 1 down vote favorite
share [g+] share [fb]

I'm trying to remote display Java based development environments, such as NetBeans and IntelliJ, from a linux machine to a windows machine. When I do this, the right click functionality of the environments does not work, which makes them unusable.

I use the -X option with Putty to tunnel X through SSH. I've repeated this using Ubuntu and RedHat to my Windows running Xming. Is there a trick to remote Xing java applications that I'm missing?

link|improve this question

57% accept rate
my first guess is a misconfiguration in your local X server, since that's getting the click events first. can you connect to the linux box (eg, via VLC) and see the right-click working there? – quack quixote Oct 19 '09 at 17:10
Yes, right click works on Linux – nathan Oct 19 '09 at 17:14
are you starting Xming with the -multiwindow option? – quack quixote Oct 19 '09 at 17:29
The -multiwindow allowed me access to the right click and file menu, but only until I move the window. Once the java application's window is moved, then there is no way to left or right click menu items on the application. – nathan Oct 20 '09 at 12:50
feedback

2 Answers

up vote 1 down vote accepted

From this post on the java.net forums it seems that there are "incorrect insets detection when using the Xming". The fix is to set the AWT_TOOLKIT environment variable. Explanation for why can be found on Sun's page here.

AWT_TOOLKIT=MToolkit

Setting this environment variable fixed all problems.

link|improve this answer
the quote from the forum is "incorrect insets detection when using the Xming", which doesn't necessarily imply it's Xming doing the incorrect detection. sounds like it's a bug in Swing. good job finding the workaround, +1! – quack quixote Oct 20 '09 at 14:07
Good point. I'll correct my quote and reword to not put Xming at fault. – nathan Oct 20 '09 at 14:24
So, this seemed to solve the problem for a while for me too, however, I'm now faced with another problem, I sometimes get some sort of keyboard focus/event problem, I can't type in my textboxes and such until i change the focuse to another window and back... anyone run into this ? – Nico Jun 29 '10 at 15:52
feedback

It seems the problem with events is still in place. I may not access menu in SQLDeveloper running on Linux and Xming on Windows. It happens if window is moved, so it loses the focus on Menu options. It may be activated using mouse however keyboard must be used

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.