Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

default layouts  RSS feed

 
leena rane
Ranch Hand
Posts: 280
  • 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
  • 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
  • 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
Boost this thread!