[shelve]: fix dialog to be compatible with new MigLayout library

* problem Introduced in a9e7965f88;
This commit is contained in:
Nadya Zabrodina
2016-08-12 12:59:32 +03:00
parent 7dbe9895c8
commit 28e27052cf
@@ -86,7 +86,8 @@ public class CleanUnshelvedFilterDialog extends DialogWrapper {
protected JComponent createCenterPanel() {
JPanel panel = new JPanel(new BorderLayout());
JLabel questLabel = new JLabel("Delete already unshelved changelists: \n");
final MigLayout migLayout = new MigLayout("flowx, ins 0");
String panelConstraints = "flowx, ins 0";
final MigLayout migLayout = new MigLayout(panelConstraints);
JPanel buttonsPanel = new JPanel(migLayout);
ButtonGroup gr = new ButtonGroup();
gr.add(mySystemUnshelvedButton);
@@ -97,9 +98,9 @@ public class CleanUnshelvedFilterDialog extends DialogWrapper {
myUnshelvedWithFilterButton.setBorder(BorderFactory.createEmptyBorder());
myAllUnshelvedButton.setBorder(BorderFactory.createEmptyBorder());
buttonsPanel.add(mySystemUnshelvedButton,"wrap");
buttonsPanel.add(mySystemUnshelvedButton, "wrap");
JPanel filterPanel = new JPanel(migLayout);
JPanel filterPanel = new JPanel(new MigLayout(panelConstraints));
filterPanel.add(myUnshelvedWithFilterButton);
filterPanel.add(myTimePeriodComboBox);
buttonsPanel.add(filterPanel, "wrap");