I create a login box with JFrame that do not let user to enter empty Or have letter username and password.
My login frame and main frame class, both are jframe(extends jframe) and i want to use this ImagePanel class for both of them.
But, i want to change its painComponents() method for my each class.
Can I change ImagePanel class abstract to do this?
Thank you.
You must call the
repaint()method.Also, if adding new components you must validate the frame as well: