SetLabeFor for labels in Grid/Guides/Snapping dialogs.

This commit is contained in:
Jindra Petřík
2025-05-08 20:09:48 +02:00
parent 86d21a1308
commit aed9def14f
3 changed files with 20 additions and 10 deletions

View File

@@ -69,6 +69,7 @@ public class GuidesDialog extends AppDialog {
centralPanel.add(colorLabel, c);
colorSelection = new ConfigurationColorSelection(Configuration.guidesColor, Configuration.guidesColor.get(), null);
colorLabel.setLabelFor(colorSelection);
c.gridx = 1;
c.anchor = GridBagConstraints.LINE_START;
centralPanel.add(colorSelection, c);
@@ -101,6 +102,7 @@ public class GuidesDialog extends AppDialog {
new AcurracyItem(GuidesSnapAccuracy.CAN_BE_DISTANT)
}
);
snapAccuracyLabel.setLabelFor(snapAccuracyComboBox);
snapAccuracyComboBox.setSelectedItem(new AcurracyItem(Configuration.guidesSnapAccuracy.get()));