• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GridBag

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
Have some doubts about GridBag..
In a Col/Row the total value of weightx/weighty should be 100% or 1.0???What will happen if it is greater than or less than that???
ipadx,ipady are the border arounds the minimum size of the componenet???
Insects are the borders around the allocated area of the component???
Please Explain ..don't point me towords an URL as I have read all of them still not clear
Thanks
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If some cen help???
Wali
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a Col/Row the total value of weightx/weighty should be 100% or 1.0???What will happen if it is greater than or less than that???
ipadx,ipady are the border arounds the minimum size of the componenet???
Insects are the borders around the allocated area of the component???

The total of the rows/columns will always be 100% (duh, I know...) If you have columns of weight 5, 3, 1,& 4, you add up all of the numbers to get 13. So column 1 would be the percentage width of column 1 to the total width which is 5/13 or about 38% of the total width. So it doesn't matter if you use .5, .3, .1 & .4 or some other numbers that give you 38%,23%, 7% & 32%, the result should be the same.

INSECTS are those little creatures that run (and fly)around on your food if you don't clean up when you're done eating. INSETS on the other hand are sort of a buffer zone between your component and the other components in a container.
I personally never use ipadx and ipady. I have never seen the need to use both insets and ipad. You can get the same effects using either method in most cases. "Minimum size" of components and GridBagLayout don't play very nice together... (yeah, I know what the book says, but controlling component size is much easier to do strictly with weights and fills than setting minimum and maximum sizes).
 
reply
    Bookmark Topic Watch Topic
  • New Topic