1. The variable myButton references a JButton object. Write the code to set the object’s background color to white and foreground color to red.
2. Assume that a class inherits from the JFrame class. Write code that can appear in the class constructor, which gives the content pane a FlowLayout manager. Components added to the content pane should be aligned with the left edge of each row.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here