remove double thread crap (make mac happy), fix full screen for mrj, auto-updater code

This commit is contained in:
benfry
2001-08-01 01:45:07 +00:00
parent 1fdab94b5d
commit fa78ede52b
4 changed files with 255 additions and 7 deletions

View File

@@ -508,10 +508,28 @@ public class PdeEditor extends Panel implements PdeEnvironment {
public void enableFullScreen() {
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
fullScreenWindow = new Window(new Frame());
fullScreenWindow.setBounds(0, 0, screen.width, screen.height);
fullScreenWindow.setBackground(new Color(102, 102, 102));
if (fullScreenWindow == null) {
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
if (PdeApplet.isMacintosh()) {
fullScreenWindow = new Frame();
// mrj is still (with version 2.2.x) a piece of shit,
// and doesn't return valid insets for frames
//fullScreenWindow.pack(); // make a peer so insets are valid
//Insets insets = fullScreenWindow.getInsets();
// the extra +20 is because the resize boxes intrude
Insets insets = new Insets(21, 5, 5 + 20, 5);
//System.out.println(insets);
fullScreenWindow.setBounds(-insets.left, -insets.top,
screen.width + insets.left + insets.right,
screen.height + insets.top + insets.bottom);
} else {
fullScreenWindow = new Window(new Frame());
fullScreenWindow.setBounds(0, 0, screen.width, screen.height);
}
fullScreenWindow.setBackground(new Color(102, 102, 102));
}
fullScreenWindow.show();
// not sure what to do with applet..