Skip to content
Snippets Groups Projects
Commit 8ca5c086 authored by Daniel Schramm's avatar Daniel Schramm
Browse files

Simple buttons are aligned to the start of the line

parent 4def42ab
No related branches found
No related tags found
No related merge requests found
...@@ -283,7 +283,10 @@ public class ControlPanelBuilder { ...@@ -283,7 +283,10 @@ public class ControlPanelBuilder {
* @return This new GUI object * @return This new GUI object
*/ */
public JButton addButton(String caption, ActionListener action) { public JButton addButton(String caption, ActionListener action) {
return addButtonCustom(caption, action, new GridBagConstraints()); final GridBagConstraints c = new GridBagConstraints();
c.anchor = GridBagConstraints.LINE_START;
return addButtonCustom(caption, action, c);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment