From f951665f5302c82c00d65e9756619ac106e3d4da Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 29 Jan 1999 12:12:03 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@173 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/JodeWindow.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/jode/jode/JodeWindow.java b/jode/jode/JodeWindow.java index 69a3aa0..ddee9b8 100644 --- a/jode/jode/JodeWindow.java +++ b/jode/jode/JodeWindow.java @@ -76,18 +76,11 @@ public class JodeWindow startButton.addActionListener(this); saveButton.addActionListener(this); - - String cp = System.getProperty("java.class.path"); - if (cp != null) - classpathField.setText(cp); - String cls = "jode.JodeWindow"; - classField.setText(cls); - Decompiler.err = new PrintStream(new AreaOutputStream(errorArea)); } public void setClasspath(String cp) { - classpathField.setText(cp.replace(File.pathSeparatorChar, ',')); + classpathField.setText(cp); } public void setClass(String cls) { classField.setText(cls); @@ -172,7 +165,14 @@ public class JodeWindow public static void main(String argv[]) { Frame frame = new Frame(Decompiler.copyright); - new JodeWindow(frame); + JodeWindow win = new JodeWindow(frame); + + String cp = System.getProperty("java.class.path"); + if (cp != null) + win.setClasspath(cp.replace(File.pathSeparatorChar, ',')); + String cls = win.getClass().getName(); + win.setClass(cls); + frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0);