I’m new to java and today I found JFrame also have the method paint and repaint. So my question is does the method paint and repaint behave the same like in java applet? Will the application update itself like applet ?
Thank you very much 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Java Swing display functionality should behave exactly the same, with respect to behavior of
paintandrepaint, when run as an application or as an applet.More generally, Swing was designed to provide consistent visuals and behavior, regardless of whether the application was running as an application or an applet.