Challenges with GUI in java