removal of PdeBase.frame and switching PdeBase to a JFrame

This commit is contained in:
benfry
2003-08-05 01:55:17 +00:00
parent 6966de1a49
commit dc03221667
3 changed files with 45 additions and 24 deletions

View File

@@ -208,10 +208,11 @@ public class PdeEditor extends JPanel {
setVisible(true);
doClose();
#ifdef JDK13
//#ifdef JDK13
// move editor to front in case it was hidden
PdeBase.frame.setState(Frame.NORMAL);
#endif
//PdeBase.frame.setState(Frame.NORMAL);
//base.setState(Frame.NORMAL);
//#endif
}});
//Dimension labelSize = label.getPreferredSize();
@@ -376,7 +377,8 @@ public class PdeEditor extends JPanel {
windowX = (screen.width - windowW) / 2;
windowY = (screen.height - windowH) / 2;
}
PdeBase.frame.setBounds(windowX, windowY, windowW, windowH);
//PdeBase.frame.setBounds(windowX, windowY, windowW, windowH);
base.setBounds(windowX, windowY, windowW, windowH);
//rebuildSketchbookMenu(PdeBase.sketchbookMenu);
}
@@ -693,6 +695,7 @@ public class PdeEditor extends JPanel {
//graphics.requestFocus(); // removed for pde
}
class RunButtonWatcher implements Runnable {
Thread thread;
@@ -1417,7 +1420,8 @@ public class PdeEditor extends JPanel {
Properties skprops = new Properties();
Rectangle window = PdeBase.frame.getBounds();
//Rectangle window = PdeBase.frame.getBounds();
Rectangle window = base.getBounds();
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
skprops.put("window.x", String.valueOf(window.x));