GridBagLayout: changing alignment after adding a flag

I have two classes that create two different dialog boxes. Both classes have the same code, except that it has extra lines of code that creates a checkbox

first class, with a flag

enter image description here

Second class, no flag

enter image description here

There is a slight difference in alignment in the Save button. How can I fix this.

+4
source share
2 answers

I needed to adjust the height of the line, since the checkbox was higher than the line, and pushed the third line down (thanks to Ingrid Biri). so I changed the height of the 2nd row from 25 to 30, and it worked.

0
source

, ? GridBagLayout / . , ​​..

, , , , , .

GBL, / ( ) , .

+1

Source: https://habr.com/ru/post/1617313/


All Articles