GridBayLayout and setting constraints.
Posted on 1997-05-19
I am using a GridBagLayout. My last column is a bunch of textfields. I use the GridBagConstraints.REMAINDER for each of the textfields that I want to be the last component in the row. The problem is when I use the line c.ipady = 5 (where c is my instance of GridBagConstraints). The other columns look okay, but the final column (which contains buttons and textfields) have each component at larger height than the other columns. Has anyone run into this?
The other thing, I set c.anchor = GridBagConstraints.WEST, yet is seems that the columns with labels keep a CENTER alignment. How do I set so that the labels are aligned to the left. I have already set Label.LEFT when the label is instanstiated.