How to generate JAXB classes with xjc

  • 05 March 2018
  • ADM

How to generate JAXB classes with xjc. Command line: xjc -d src -p com.admfactory.client schema.xsd


HTTP URLConnection with proxy in Java

  • 08 February 2018
  • ADM

How to create an HTTP URLConnection with proxy in Java. Simple example including proxy authentication.


How to Check Alexa Rank in Java

  • 16 November 2017
  • ADM

How to Check Alexa Rank in Java using the undocumented API: http://data.alexa.com/data?cli=10&url=domainName. The code contains also the possibility of adding proxy settings


How to deep clone an object in Java

  • 25 July 2017
  • ADM

How to deep clone an object in Java. The clone method from the parent object needs to clone each child object separately and added to the cloned parent object.


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.


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.