diff --git a/src/main/java/info/istlab/IoTP/JTAConsole.java b/src/main/java/info/istlab/IoTP/JTAConsole.java index 5492e57..200d354 100644 --- a/src/main/java/info/istlab/IoTP/JTAConsole.java +++ b/src/main/java/info/istlab/IoTP/JTAConsole.java @@ -53,19 +53,19 @@ frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); frame.addWindowListener(this); - if (winStack.size() > 0) { - JTAConsole last = winStack.peek(); - if (last.isVisible()) { - Point lastFrameP = last.frame.getLocationOnScreen(); - frame.setLocation(lastFrameP.x + 470, lastFrameP.y); - } - } else { + // if (winStack.size() > 0) { + // JTAConsole last = winStack.peek(); + // if (last.isVisible()) { + // Point lastFrameP = last.frame.getLocationOnScreen(); + // frame.setLocation(lastFrameP.x + 470, lastFrameP.y); + // } + // } else { if (Editor.lastOpened != null) { Point lastEditorP = Editor.lastOpened.getLocationOnScreen(); Dimension lastEditorD = Editor.lastOpened.getSize(); frame.setLocation(lastEditorP.x, lastEditorP.y + lastEditorD.height); } - } + // } addKeyListener(this); addMouseListener(this); @@ -76,7 +76,7 @@ // frame.setLocation(lastFrameP.x+500, lastFrameP.y); // } // lastWindow = this; - winStack.push(this); + // winStack.push(this); originalContent = new StringBuilder(); }