This commit is contained in:
2022-01-06 20:06:40 +01:00
parent a3aeb1d04c
commit 2e2b82bc97
2 changed files with 4 additions and 2 deletions

View File

@@ -205,7 +205,9 @@ class GTXConsole extends JFrame implements ActionListener{
String prefix = this.now() + " # ";
text = text.replaceAll("\n", "\n" + prefix);
mShowArea.setText(mShowArea.getText() + "\n" + prefix + text);
//System.out.println(text);
// TODO: Make silent output configurable
// Uncomment this line if you don't want console output
System.out.println(text);
}
private String now() {

View File

@@ -81,7 +81,7 @@ public class WarningBox extends JFrame implements ActionListener {
if (bodyFont == null) {
bodyFont = new Font("SansSerif", Font.PLAIN, 10);
}
java.net.URL imgURL = WarningBox.class.getResource("images/info.png");
java.net.URL imgURL = WarningBox.class.getResource("/images/info.png");
ImageIcon icon = new ImageIcon(imgURL, "");
Panel imagePanel = new Panel(new GridBagLayout());
Panel textPanel = new Panel(new GridBagLayout());