Skip to content

Commit

Permalink
Edit the left insets of the checkboxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DunaMariusCosmin committed Jan 26, 2018
1 parent 53cee62 commit 36f2fff
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class PrologOptionPage extends JPanel {
/**
* Left indent for check boxes.
*/
private static final int LEFT_INDENT = 25;
private int leftIndent = 0;

/**
* Constructor.
Expand All @@ -116,6 +116,8 @@ public PrologOptionPage() {
mapUpdateContributor = new JCheckBox(messages.getMessage(Tags.UPDATE_CONTRIBUTOR));
mapUpdateRevised = new JCheckBox(messages.getMessage(Tags.UPDATE_REVISED_DATES));

leftIndent = new JCheckBox().getPreferredSize().width;

GridBagConstraints constr = new GridBagConstraints();
constr.gridx = 0;
constr.gridy = 0;
Expand All @@ -126,7 +128,7 @@ public PrologOptionPage() {
constr.gridx++;
constr.weightx = 1;
constr.fill = GridBagConstraints.HORIZONTAL;
constr.insets.left = LEFT_INDENT;
constr.insets.left = leftIndent;
// Author field
add(authorTextField, constr);

Expand All @@ -143,7 +145,7 @@ public PrologOptionPage() {
add(topicEnableUpdate, constr);

constr.gridy++;
constr.insets.left = LEFT_INDENT;
constr.insets.left = leftIndent;
add(topicSetCreator, constr);

constr.gridy++;
Expand All @@ -166,7 +168,7 @@ public PrologOptionPage() {
add(mapEnableUpdate, constr);

constr.gridy++;
constr.insets.left = LEFT_INDENT;
constr.insets.left = leftIndent;
add(mapSetCreator, constr);

constr.gridy++;
Expand Down

0 comments on commit 36f2fff

Please sign in to comment.