However the JLabel is centered in column 2 rather than centered over the spanned columns
I haven't written anything yet.
I want to place a JLabel over a subset of them. I am using 'gridwidth=6' to span those columns (2-7). However the JLabel is centered in column 2 rather than centered over the spanned columns
I cannot find anything in the documentation
Where in the documentation does it discuss centering in spanned columns rather than centering in a single column? Why is that so hard to understand?
This implies you have tested code and it doesn't do what you want.
And I have lost track of the number of times I have referred you to the Swing tutorial.
what part of "I cannot find anything in the documentation" is confusing you?
I have a series of columns in my JDialog and I want to place a JLabel over a subset of them. I am using 'gridwidth=6' to span those columns (2-7). However the JLabel is centered in column 2 rather than centered over the spanned columns
"Documentation" to me means the API documentation for the GridBagLayout class.
So once again, if you have a question, try it first, don't assume it doesn't work.
Glad we have that defined now so you will understand what I have looked for.
I guess I am unique in that I PLAN before I act.
perhaps you should leave answering my questions to others
Crusading Chameleon likes the size of this ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|