How to add panel to a Frame?
Answers were Sorted based on User's Feedback
Answer / thirumal.r
JFrame f=new JFrame();
JPanel p=new JPanel();
f.add(p,BorderLayout.CENTER);
| Is This Answer Correct ? | 19 Yes | 1 No |
Answer / jitendra
JPanel p1 = new JPanel();
p1.setLayout(new BorderLayout());
| Is This Answer Correct ? | 17 Yes | 3 No |
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
Is char * a string?
What is contract between hashcode and equal method?
what is the use of Clonable,and serializable interface?
State one difference between a template class and class template.
Different types of Layouts?
What are the different types of multitasking?
What is hash in java?
Why do we need hashset in java?
Does variable declaration allocate memory?
Can we clone singleton object in java?
What is not object oriented programming?