Question: The variable myButton references a JButton object. Write the code to set the objects background color to white and foreground color to red.
The variable myButton references a JButton object. Write the code to set the object’s background color to white and foreground color to red.
Step by Step Solution
3.42 Rating (168 Votes )
There are 3 Steps involved in it
myButtonsetBackgroundColorwhite myButtonsetForegroun... View full answer
Get step-by-step solutions from verified subject matter experts
