diff --git a/src/main/java/org/editor/EditorWindow.java b/src/main/java/org/editor/EditorWindow.java index ff8a944..ca664dd 100644 --- a/src/main/java/org/editor/EditorWindow.java +++ b/src/main/java/org/editor/EditorWindow.java @@ -237,7 +237,7 @@ public static void addTab(ActionEvent e) { // Add first editor normally if (index == 0) { - win.desk.addDockable(editor); + win.getContentPane().add(editor); win.desk.createTab(win.dashboard, editor, 2); } else { // Add to same container as first editor @@ -256,6 +256,7 @@ public static void addTab(Path path, Void e) { // Add first editor normally if (index == 0) { + win.getContentPane().add(editor); win.desk.createTab(win.dashboard, editor, 2); } else { // Add to same container as first editor