Java swing based sample application