How to generate a random password in Java

  • 19 July 2017
  • ADM

How to generate a random password in Java. The algorithm uses a dictionary.


How to create a Java project with Maven

  • 07 August 2017
  • ADM

How to create a Java project with Maven. Simple steps to generate the project, import in Eclipse and run the application.


How to sort TreeMap in descending order in Java

  • 15 June 2017
  • ADM

How to sort TreeMap in descending order in Java. A simple example using a string as keys.


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.


How to centre a SWT shell in the middle of the screen

  • 01 June 2017
  • ADM

How to centre an SWT shell in the middle of the primary monitor. Four simple steps, create the shell, get monitor size, calculate the centre and set the shell new location.