Paint app in java