I\'ve built a GUI using Swing and the MigLayout.
I am using Eclipse 4.2.2 (64-bit) on Windows 7 Ultimate. Every time I click back into the window to edit my code, a
It is hardware problem at all.
If you have nView, turn off Desktop Manager. In case of ATI, turn off HydraVision.
This works fine on Eclipse Kepler (Standard) and Android Developer Tools Edition.
Well, somewhat answering my own question here. I am still unaware of what causes the issue, but I have found an alternative.
Since the Juno release of Eclipse is relatively recent, the bug itself might have something to do with my system's configuration.
I instead downloaded the latest version of its predecessor, Eclipse Indigo. Now I am able to use Eclipse just fine.
As I do not require any of the new features of Juno, the Indigo release will do just fine.
I too faced this problem.
OS : Ubuntu 18.04 LTS
I'm using gnome, I switched from Gnome environment to Gnome Classic environment while logging in and it fixed the issue.
(You can also try other environments like unity - In my case this bug did not appear in Unity or Ubuntu, it only appeared in Gnome )
As suggested by Nineroad Installing WindowBuilder as the default editor for files with a *.java extention fixed this issue for me.
In Eclipse, navigate to Help > Install New Software
Add http://archive.eclipse.org/windowbuilder/WB/release/R201309271200/4.3 to the "Work with" path, select all components suggested, and install WindowBuilder.
Once complete, Eclipse will request restart. Once restarted, within Eclipse navigate to Window > Preferences. In The Preferences dialogue-box navigate to General > Editor > File Associations. Under "File Associations" list, be sure to select *.java file types. The bottom window (labeled "Associated Editors") should have WindowBuilder as an option. Select WindowBuilder and click "Default" to the right, to set WindowBuilder as your default *.java file editor.
This fixed the SWT error for me.
Note: Eclipse Version: Kepler Service Release 2 Windows 7 64-bit
I had the exact same issue. I found here a solution which works for me : https://bugs.eclipse.org/bugs/show_bug.cgi?id=517671#c58
For me it was sufficient to put
export GTK_IM_MODULE=ibus
into ~/.profile.
Hope this will help some of you also.
I had the same problem and finally figured out, that it was the Logitech SetPoint Software.
Deinstalled it - and the error is gone.