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 |
Explain the importance of thread scheduler in java?
What are the types of arrays in java?
Explain jvm, jre, and jdk?
What is a blocking method in Java?
What is this keyword used for?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
Why does java not allow multiple public classes in a java file ?
why we r not use pointers in corejava?
What do u mean by wrapper Class? What do u mean by Jvm... How do u change JVM for other OS? Or No need to Change ...? its like tricky
How do you identify if jvm is 32-bit or 64-bit from java program?
How to access a variable if it is declared as private?
What is thread?