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 major drawback of internal iteration over external iteration?
What is variable and its types?
What are the characteristics provided in jdk1.6 apart from other versions?
how can you catch multiple exceptions in java?
difference between byte stream class and character stream class?
Can we create a class inside a class in java?
Difference between == and .equals() ?
What is unicode used for?
Explain about instanceof operator in java?
What is java reflection api?
what is the purpose of the final in the try-catch-final
What does it mean to be immutable?