Fixed Some Stuff

This commit is contained in:
Konloch 2015-07-03 00:28:03 -06:00
parent e5b507656c
commit 784eb960b8

View file

@ -652,7 +652,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java1 = panelArea;
}
@ -679,7 +679,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java1 = panelArea;
}
@ -707,7 +707,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -716,7 +716,7 @@ public class ClassViewer extends Viewer {
cn.accept(cw);
JHexEditor hex = new JHexEditor(cw.toByteArray());
panel1.add(hex);
hex.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
hex.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
if (pane1 == 6) {// bytecode
@ -743,7 +743,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -770,7 +770,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java1 = panelArea;
}
@ -801,7 +801,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -828,7 +828,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel1.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java1 = panelArea;
}
@ -870,7 +870,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java2 = panelArea;
}
@ -897,7 +897,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java2 = panelArea;
}
@ -924,7 +924,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java2 = panelArea;
}
@ -950,7 +950,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -959,7 +959,7 @@ public class ClassViewer extends Viewer {
cn.accept(cw);
JHexEditor hex = new JHexEditor(cw.toByteArray());
panel2.add(hex);
hex.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
hex.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -985,7 +985,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1012,7 +1012,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java2 = panelArea;
}
@ -1041,7 +1041,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1068,7 +1068,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel2.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java2 = panelArea;
}
@ -1111,7 +1111,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel3.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java3 = panelArea;
}
@ -1138,7 +1138,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel3.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java3 = panelArea;
}
@ -1165,7 +1165,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel3.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
java3 = panelArea;
}
@ -1191,7 +1191,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel3.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1200,7 +1200,7 @@ public class ClassViewer extends Viewer {
cn.accept(cw);
JHexEditor hex = new JHexEditor(cw.toByteArray());
panel3.add(hex);
hex.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
hex.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1226,7 +1226,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel3.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1254,7 +1254,7 @@ public class ClassViewer extends Viewer {
});
panel3.add(scrollPane);
java3 = panelArea;
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1282,7 +1282,7 @@ public class ClassViewer extends Viewer {
@Override public void keyTyped(KeyEvent arg0) { }
});
panel3.add(scrollPane);
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
@ -1310,11 +1310,11 @@ public class ClassViewer extends Viewer {
});
panel3.add(scrollPane);
java3 = panelArea;
panelArea.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
panelArea.setFont(new Font(Font.MONOSPACED, Font.PLAIN, (int)BytecodeViewer.viewer.fontSpinner.getValue()));
}
} catch(Exception e) {
new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
//new the.bytecode.club.bytecodeviewer.api.ExceptionUI(e);
} finally {
resetDivider();
BytecodeViewer.viewer.setIcon(false);