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 |
Can a static method be overridden in java?
Which number is denoted by leading zero in java?
Can we use synchronized block for primitives?
List primitive java types?
Define inheritance?
What is the difference between synchronized and synchronized block?
Can we inherit the constructor in a Class?please give one example.
Which methods are used during serialization and deserialization process?
What is meant by call by reference?
why the equals method can be override?when we override the equals method?
Definition for connection pooling?
Which is fastest collection in java?