simplify UI code using JBUI

This commit is contained in:
Konstantin Bulenkov
2017-09-11 22:46:31 +02:00
parent 744b94bdd2
commit df2def6ba8
@@ -98,12 +98,8 @@ public class ChooseActionsDialog extends DialogWrapper {
@Override
protected JComponent createCenterPanel() {
JPanel panel = new JPanel(new BorderLayout());
panel.add(myActionsTree.getComponent());
panel.setPreferredSize(JBUI.size(400, 500));
return panel;
return JBUI.Panels.simplePanel(myActionsTree.getComponent())
.withPreferredSize(400, 500);
}
public String[] getTreeSelectedActionIds() {