Question: Write a Java Swing application ResizeLabel that displays a label and has a dropdown menu ( a JComboBox ) with entries Small , Medium ,
Write a Java Swing application ResizeLabel that displays a label and has a dropdown menu a JComboBox with entries SmallMedium and Large that, when selected, cause the font size of the label to be size or respectively. Don't make too much of this: keep it simple!
Start with a relatively simple Java Swing example, like HelloSwingWorldjava from last week, to get the basic structure of the program, remember to change all instances of the class name to ResizeLabel, and add only what you need for the functionality required here. A nice layout of the dropdown menu and the label would be nice, but is not required.
In a Java Swing application ResizeRadio, replicate this functionality, but replace your JComboBox with a set of JRadioButtons that perform the same functionality. It's probably easiest to start with a copy of ResizeLabel.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
