mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
don't create panel for titlePane if not needed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user