Is JPanel's paint method same as JApplet's paint method?

and other methods.Due to my reckless, I wrote many methods with JPanel for my JApplet assignment.Can I simply copy them or plant?Thanks
[163 byte] By [ardmorea] at [2007-11-27 9:11:27]
# 1
> and other methods.> Due to my reckless, I wrote many methods with JPanel> for my JApplet assignment.> Can I simply copy them or plant?Could you add the JPanel to your JApplet?
petes1234a at 2007-7-12 21:57:01 > top of Java-index,Java Essentials,New To Java...
# 2

You might want to take a good look at the API.

http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JApplet.html

I think of JApplet as similar to a JFrame more than a JPanel. Both implement the RootPaneContainer interface (along with JDialog) and are top-most containers of an app. So just like a JFrame, you can add panels to the JApplet's contentPane through getContentPane.add().

petes1234a at 2007-7-12 21:57:02 > top of Java-index,Java Essentials,New To Java...
# 3
nice,I will attach it to the JApplet
ardmorea at 2007-7-12 21:57:02 > top of Java-index,Java Essentials,New To Java...