*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@173 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent f801ebab80
commit f951665f53
  1. 18
      jode/jode/JodeWindow.java

@ -76,18 +76,11 @@ public class JodeWindow
startButton.addActionListener(this); startButton.addActionListener(this);
saveButton.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)); Decompiler.err = new PrintStream(new AreaOutputStream(errorArea));
} }
public void setClasspath(String cp) { public void setClasspath(String cp) {
classpathField.setText(cp.replace(File.pathSeparatorChar, ',')); classpathField.setText(cp);
} }
public void setClass(String cls) { public void setClass(String cls) {
classField.setText(cls); classField.setText(cls);
@ -172,7 +165,14 @@ public class JodeWindow
public static void main(String argv[]) { public static void main(String argv[]) {
Frame frame = new Frame(Decompiler.copyright); 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() { frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) { public void windowClosing(WindowEvent e) {
System.exit(0); System.exit(0);

Loading…
Cancel
Save