mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
more tidbits for macosx
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user