Write a program that shows a frame with two buttons labeled “Zoom in”, and “Zoom out”, and a label containing a car icon and another for a bus icon. As the user clicks the buttons “Zoom in”, and “Zoom out”, the car should get larger or smaller. You need to invoke the repa ± nt method on the label to trigger a redisplay of the image. If the user clicks the bus button, the car will disappear, and the bus will appear instead with the same size as the car before it disappeared and vice versa. Use Icon interface for both Car and Bus classes.
Get Free Quote!
274 Experts Online