This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is default layout for Applet a border or flow layout Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Is default layout for Applet a border or flow layout" Watch "Is default layout for Applet a border or flow layout" New topic
Author

Is default layout for Applet a border or flow layout

Kasey Tritt
Greenhorn

Joined: May 02, 2002
Posts: 15
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

Joined: Mar 07, 2002
Posts: 295
Default Layout for:
Panel, Applet - FlowLayout
Window and Subclasses - BorderLayout

Hope it helps.
Clement


best regards,<br />Steven<br />SCJP, SCEA
Kasey Tritt
Greenhorn

Joined: May 02, 2002
Posts: 15
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.)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is default layout for Applet a border or flow layout
 
Similar Threads
Study Notes from a person who secured 100%.
j-Notes 3.0 !!!
BorderLayout placement Constraint
actual GUI question on a job technical interview
Jtext problem very urgent