logo like functionality in java