more tidbits for macosx

This commit is contained in:
benfry
2002-09-02 16:09:29 +00:00
parent ea7811d012
commit fda38056a0
4 changed files with 35 additions and 1 deletions

View File

@@ -85,7 +85,12 @@ public class PdeBase implements ActionListener {
}
public PdeBase() {
frame = new Frame(WINDOW_TITLE);
frame = new Frame(WINDOW_TITLE) {
// hack for #@#)$(* macosx
public Dimension getMinimumSize() {
return new Dimension(300, 300);
}
};
try {
icon = Toolkit.getDefaultToolkit().getImage("lib/icon.gif");
@@ -282,6 +287,8 @@ public class PdeBase implements ActionListener {
//((PdeEditor)environment).frame = frame
frame.pack(); // maybe this should be before the setBounds call
//System.out.println(frame.getMinimumSize() + " " + frame.getSize());
editor.frame = frame; // no longer really used
editor.init();
rebuildSketchbookMenu(sketchbookMenu);