don't create panel for titlePane if not needed

This commit is contained in:
Vladimir Krivosheev
2014-11-26 08:28:33 +01:00
parent ec8e594d51
commit d3896aa011
@@ -1204,11 +1204,11 @@ public abstract class DialogWrapper {
};
toggleShowOptions.registerCustomShortcutSet(sc, root);
final JPanel northSection = new JPanel(new BorderLayout());
root.add(northSection, BorderLayout.NORTH);
JComponent titlePane = createTitlePane();
if (titlePane != null) {
JPanel northSection = new JPanel(new BorderLayout());
root.add(northSection, BorderLayout.NORTH);
northSection.add(titlePane, BorderLayout.CENTER);
}