Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is default layout for Applet a border or flow layout

 
Kasey Tritt
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is default layout for Applet a border layout or flow layout?
The Java Tutorial from Sun states that the border layout is the default for Frames, Applets and Dialog.
I did some mock exams and most of the time the solution for the mock exam choose flow layout as the default for Applet.
Does any one know and can confirm the default layout for a Applet?
Thanks.
 
Steven Wong
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Default Layout for:
Panel, Applet - FlowLayout
Window and Subclasses - BorderLayout

Hope it helps.
Clement
 
Kasey Tritt
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Clement.
Perhaps I misunderstood the following from the Java Tutorial:
http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html
BorderLayout is the default layout manager for every content pane. (As described in Using Top-Level Containers, the content pane is the main container in all frames, applets, and dialogs.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic