• 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

Component Cell Width

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can someone tell what is the difference between component's cell width and component's width.
Ragrds
Muhammad Ali
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think your question is about the GridBagLayout.
The component's width is simply the width of a graphical component inside a container. The component's cell width is the width of the cell in the grid containing the component. As you know, the GridBagLayout devides the area into a bidimensionnal array of cells. Then you add components into the grid, and in the case of the GridBagLayout, you may specify a lot of things concerning the appearance of a component to add. For instance you may say that the component should take the whole area of the cell in which it is added (the component's width = the component's cell width), or you may specify that the component be its preferred size and be at the bottom aligned in the center of the cell (the component's width != component's cell width).
I don't know if this answers your question, let me know if not..
Val
 
md ali
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, It was about GridBagLayout. Thankyou very much for answering the question.
Thanks
Muhammad Ali
[This message has been edited by md ali (edited September 22, 2001).]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic