You are used to defining derived classes of the Swing class JFrame. You can
also define derived classes of other Swing classes. Define a derived class of
the class JPanel that is called PinkJPanel. An object of the class PinkJPanel
can be used just as we used objects of the class JPanel, but an object of the
class PinkJPanel is pink in color (unless you explicitly change its color).
The class PinkJPanel will have only one constructor—namely, the
no-argument constructor. (Hint: This is very easy.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here