From 75d2e1edd5f41cfad793faf4936c197332dc3a76 Mon Sep 17 00:00:00 2001 From: benfry Date: Thu, 18 Apr 2002 14:03:49 +0000 Subject: [PATCH] middle of work on maximizing window etc --- processing/app/PdeEditor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index 75cbdbfd9..9fadfc0f9 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -13,7 +13,7 @@ import java.util.zip.*; public class PdeEditor extends Panel implements PdeEnvironment { static final String DEFAULT_PROGRAM = "// type program here\n"; - + // otherwise, if the window is resized with the message label // set to blank, it's preferredSize() will be fukered static final String EMPTY = " "; @@ -401,8 +401,9 @@ public class PdeEditor extends Panel implements PdeEnvironment { // add standard .class files to the jar for (int i = 0; i < bagelClasses.length; i++) { - if ((bagelClasses[i].equals(".")) || - (bagelClasses[i].equals(".."))) continue; + if (!bagelClasses[i].endsWith(".class")) continue; + //if ((bagelClasses[i].equals(".")) || + // (bagelClasses[i].equals(".."))) continue; //System.out.println("adding class " + (i+1) + " of " + classes.length); entry = new ZipEntry(bagelClasses[i]); zos.putNextEntry(entry);