Mar 172020

ADM

How to check the JDK version of a class file

  • 17 March 2020
  • ADM

When running a Java application it is mandatory that the JRE version to match or to be higher that the JDK version used to compile the application.

You will get the "Unsupported major.minor version 52.0" error when trying to run an Java 1.8 application using a lower version of Java.

Jan 062020

ADM

How to disable submit button with jQuery

  • 06 January 2020
  • ADM

For a long submit operation or to avoid users clicking twice a submit button, a common solution is to disable the submit button after user clicked on it.

To disable a button using jQuery you need to add the disabled attribute to the button as true.

Jun 052017

ADM

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.

Jun 012017

ADM

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.

Jun 012017

ADM

SWT Hello World Application

  • 01 June 2017
  • ADM

SWT Hello World Application. A simple application that can be used as a base for any SWT application.

Feb 092017

ADM

log4j.properties basic examples

  • 09 February 2017
  • ADM

log4j.properties basic examples. Output to the console and to the file.