File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

default layouts

 
leena rane
Ranch Hand
Posts: 280
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am i right ?
Applets and Panel have degault Layout - FlowLayout
All other containers (Window,Frame,Dialog,FileDialog,ScrollPane)-BorderLayout
Thanx in advance
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Applet and Panel have a FlowLayout as LayoutManager
Window, Frame and Dialog have a BorderLayout
However, ScrollPane has a LayoutManager being null

FileDialog has a LayoutManager being null too

HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Bob E. Lee
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice! I should look into the code more often. But doing search on JavaRanch helps too!


Yes Applet and Panel have a FlowLayout as LayoutManager
Window, Frame and Dialog have a BorderLayout
However, ScrollPane has a LayoutManager being null

FileDialog has a LayoutManager being null too

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic