mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify UI code using JBUI
This commit is contained in:
+2
-6
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user