How will you add panel to a Frame ?

How will you add panel to a Frame ?

We can add panel to a Frame :
 
Panel p = new Panel();
Frame f =new Frame(\"My frame\");
f.getContentpane().add(p);
 

By:Jalees
Date:2013-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher