posted 22 years ago
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