cleaning up bugs and making more

This commit is contained in:
benfry
2004-05-16 20:54:32 +00:00
parent 37562e039d
commit b4d0c6b336
3 changed files with 40 additions and 14 deletions

View File

@@ -182,19 +182,30 @@ public class PdeEditor extends JFrame
textarea.setRightClickPopup(new TextAreaPopup());
textarea.setTokenMarker(new PdeKeywords());
System.out.println("here 1");
// assemble console panel, consisting of status area and the console itself
consolePanel = new JPanel();
//System.out.println(consolePanel.getInsets());
consolePanel.setLayout(new BorderLayout());
System.out.println("here 1a");
status = new PdeEditorStatus(this);
consolePanel.add(status, BorderLayout.NORTH);
System.out.println("here 1b");
console = new PdeEditorConsole(this);
consolePanel.add(console, BorderLayout.CENTER);
System.out.println("here 1c");
splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
textarea, consolePanel);
System.out.println("here 2");
splitPane.setOneTouchExpandable(true);
// repaint child panes while resizing
splitPane.setContinuousLayout(true);
@@ -213,6 +224,8 @@ public class PdeEditor extends JFrame
splitPane.setDividerSize(dividerSize);
}
System.out.println("here 3");
rightPanel.add(splitPane, BorderLayout.CENTER);
pain.add("Center", rightPanel);
@@ -365,18 +378,11 @@ public class PdeEditor extends JFrame
String sketchPath = PdePreferences.get("last.sketch.path");
//PdeSketch sketchTemp = new PdeSketch(sketchPath);
//if (sketchName != null) {
if ((sketchPath != null) && (new File(sketchPath)).exists()) {
handleOpen(sketchPath);
//skOpen(new PdeSketch(sketchFile));
//if (new File(sketchDir + File.separator + sketchName + ".pde").exists()) {
//skOpen(sketchDir, sketchName);
// don't check modified because nothing is open yet
handleOpen2(sketchPath);
//} else {
//skNew2(true);
//}
} else {
//skNew2(true);
handleNew2(true);
}