- An error has occurred, which probably means the feed is down. Try again later.
Tag Archives: SWT
Sometimes you want to detect the metakey which was pressed during a mouse click on SWT widget. This information is available in the SelectionEvent via the stateMask property. The following code shows an example for this.
In SWT you must cleanup your allocated resources. Luckily the SWT Composite passed to you, is disposed by the framework so any Widget which you create on this control is disposed for you automatically. Except Fonts, Colors and Images. For … Continue reading
Currently, if you trying to use WindowBuilder under Linux with Eclipse 3.8 / Eclipse 4.2, it renders incorrectly. Add the following line to the end of your eclipse.ini file to fix this: -Dorg.eclipse.swt.internal.gtk.useCairo=false This is a small bug in SWT … Continue reading
As many of you properly know SWT has the nice Program.launch() method which allows to start programs associated with an URI. Example: Unfortunately this does not seem to be working on Linux. So if you are working under Linux you … Continue reading
Ever wondered how SWT Style bits work? It is actually very simple. The style bits are a multitud of 2 SWT.NONE = 0, // 00000000 binary SWT.MULTI = 2, // 00000010 binary SWT.SINGLE = 4; // 00000100 binary SWT.READ_ONLY = … Continue reading