SWT Button Selection Event

  • 05 June 2017
  • ADM

SWT Button Selection Event. A simple example using SelectionListener interface to add an event to a button.


SWT update UI from another thread

  • 05 June 2017
  • ADM

SWT update UI from another thread. Used for long running operations and to avoid the UI being frozen during the operation.


File Path, Absolute Path and Canonical Path in Java

  • 22 May 2017
  • ADM

File Path, Absolute Path and Canonical Path in Java. A simple example using both cases of file object: created using absolute path and created using a relative path.


How to create tiny HTTP server in Java

  • 08 May 2017
  • ADM

How to create tiny HTTP server in Java using ServerSocket class.


Enum examples in Java

  • 24 April 2017
  • ADM

Enum examples in Java. Simple enum usage. How to convert String to Enum object. Enum object with fields and methods.


How to convert XML file into properties data in Java

  • 04 April 2017
  • ADM

The java.util.Properties class come with a loadFromXML() method to convert an XML file to properties data.