• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

component areas

 
Mahen
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between
Allotted display area of component
Filling and anchoring area
Bounds of component
Components preffered size
and how do these areas for components determined
and how these get affected by other components
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this question to the beginner forum where it may be a better fit...
 
Shay Gaghe
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Components Size and Position are fully depends on them Layout Manager. therefor the get and set PreferedSize()let you choose your prefered size of the component as it shows on the GUI ,in athor words it let you determine the natural area the component will take.
best regards
Shay
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahen
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
Thanks,
Cindy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic