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 is the difference between pass by reference and pass by pointer?
What is are packages?
What will happens if you opened Internet Explorer 4 times?
List the features of java programming language.
What is a boolean expression in java?
What is the difference between processes and threads?
how to one war file class to another war file class?
What is the purpose of the runtime class in java programming?
What do you mean by platform independence? What is an interface?
which method throws exception of type Throwable
What is the need of transient variables in Java ?
v-model life cycle