Questiion from a noob.. JFrame and JPanel

i want to ask

what the diff between

public class classname extends JFrame

and

public class classname extends JPanel

what i want to know is, what will it actually do

i dont understand what does the extends means..

for example:

if i use extends JFrame, i will still able to use JPanel and

if i use extends JPanel, i also able to use JFrame..

so whats the diff?

and whats the usage of the extends keyword in this case?

help..

Message was edited by:

w32sysfie

[548 byte] By [w32sysfiea] at [2007-11-27 3:20:29]
# 1
Uhoh, you need the basics first: http://java.sun.com/docs/books/tutorial/java/IandI/subclasses.html
PhHeina at 2007-7-12 8:23:12 > top of Java-index,Desktop,Core GUI APIs...