set a font,

classpath field got lost
Show SecurityException when saving


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@404 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 2d79763a73
commit 6a5d53ca42
  1. 10
      jode/jode/JodeWindow.java

@ -46,6 +46,9 @@ public class JodeWindow
sourcecodeArea.setEditable(false); sourcecodeArea.setEditable(false);
errorArea.setEditable(false); errorArea.setEditable(false);
Font monospaced = new Font("monospaced", Font.PLAIN, 10);
sourcecodeArea.setFont(monospaced);
errorArea.setFont(monospaced);
GridBagLayout gbl = new GridBagLayout(); GridBagLayout gbl = new GridBagLayout();
window.setLayout(gbl); window.setLayout(gbl);
@ -101,6 +104,8 @@ public class JodeWindow
/// gbl.setConstraints(errorArea, areaConstr); /// gbl.setConstraints(errorArea, areaConstr);
/// window.add(errorArea); /// window.add(errorArea);
///#else ///#else
window.add(new Label("class path: "), labelConstr);
window.add(classpathField, textConstr);
window.add(new Label("class name: "), labelConstr); window.add(new Label("class name: "), labelConstr);
window.add(classField, textConstr); window.add(classField, textConstr);
window.add(verboseCheck, checkConstr); window.add(verboseCheck, checkConstr);
@ -166,6 +171,11 @@ public class JodeWindow
Decompiler.err.println("Couldn't write to file " Decompiler.err.println("Couldn't write to file "
+ fileName + ": "); + fileName + ": ");
ex.printStackTrace(Decompiler.err); ex.printStackTrace(Decompiler.err);
} catch (SecurityException ex) {
errorArea.setText("");
Decompiler.err.println("Couldn't write to file "
+ fileName + ": ");
ex.printStackTrace(Decompiler.err);
} }
} }
} }

Loading…
Cancel
Save