Fill This Form To Receive Instant Help
Homework answers / question archive / Write a Java code that creates a panel with two buttons
Write a Java code that creates a panel with two buttons. The first one is labeled as Yellow and the second one as Red. Now if the user clicks the Yellow button, then the panel background color changes to yellow and if he clicks Red, it changes to red. Add a third button if the user clicks it restores the background color to the default color