tags:

views:

44

answers:

1

Write a program that shows a frame with three buttons labeled "Red", "Green", "Blue" and a label containing an icon showing a circle that is initially Red. As the user clicks the buttons, the fill color of the circle should change. When you change the color, you need to invoke the repaint method on the label. the call to repaint ensures that the PaintIcon method is called so that the icon can be repainted with the new color.

+1  A: 

An excellent source of such solutions is rentacoder.

Will
Thank u friend...
u obviously missed the sarcasm :P don't post your homework here and if you do label it as such and try to ask something that will help you solve the problem yourself instead of waiting for someone to do your homework for free..
Savvas Dalkitsis