Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

default layouts

 
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic