what is default layout of JFrame class?

Answer Posted / la_di

The default layout manager of a JFrame (and a Frame to) is
BorderedLayout. Check this code:

System.out.println(new JFrame().getLayout());

Is This Answer Correct ?    47 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do I need to declare the type of a variable in java?

768


What is garbage collection? What is the process that is responsible for doing that in java?

853


What are the different ways of implementing thread? Which one is more advantageous?

730


What is ‘has a’’ relationship in java?

932


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

701


How do you sort in ascending order in java?

666


What is the default size of arraylist in java?

715


why an outer class cannot be declared as private?

3894


when you will synchronize a piece of your code? : Java thread

740


Can a method be static?

717


What is the effect of keeping a constructor private?

659


Can a final variable be manipulated in java?

741


List down the methods and interfaces of collection class in java.

740


What is proper subset?

752


What are wrapped classes in java programming?

808