cleaning up some of the hell

This commit is contained in:
benfry
2003-11-09 20:06:57 +00:00
parent 227788d1ed
commit 3361c31139
5 changed files with 227 additions and 63 deletions
+5 -5
View File
@@ -109,8 +109,8 @@ public class PdeRuntime implements PdeMessageConsumer {
this.leechErr = leechErr;
Point parentLoc = editor.base.getLocation();
Insets parentInsets = editor.base.getInsets();
Point parentLoc = editor.getLocation();
Insets parentInsets = editor.getInsets();
int x1 = parentLoc.x - 20;
int y1 = parentLoc.y;
@@ -146,7 +146,7 @@ public class PdeRuntime implements PdeMessageConsumer {
applet.leechErr = leechErr;
// has to be before init
applet.serialProperties(PdePreferences.properties);
//applet.serialProperties(PdePreferences.properties);
applet.init();
if (applet.exception != null) {
if (applet.exception instanceof PortInUseException) {
@@ -257,8 +257,8 @@ public class PdeRuntime implements PdeMessageConsumer {
Insets insets = window.getInsets();
//System.out.println(insets);
int minW = PdePreferences.getInteger("run.window.width.minimum", 120);
int minH = PdePreferences.getInteger("run.window.height.minimum", 120);
int minW = PdePreferences.getInteger("run.window.width.minimum");
int minH = PdePreferences.getInteger("run.window.height.minimum");
int windowW = Math.max(applet.width, minW) + insets.left + insets.right;
int windowH = Math.max(applet.height, minH) + insets.top + insets.bottom;