1. Write statements to create and display a new frame that is 400 pixels by 600 pixels. Set the frame title to “ First Frame.”
2. Compare and contrast an object of JFrame and an object of JPanel.
3. Explain why an explicit call to paintComponent is not required when using a panel.
4. What is the default pen color used by the drawing methods of the Graphics class?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here