2019-04-15 11:45:15 +02:00
|
|
|
package de.mas.wiiu.jnus.jnustool;
|
2016-02-05 16:40:26 +01:00
|
|
|
|
2016-02-06 18:25:08 +01:00
|
|
|
import javax.swing.JFrame;
|
|
|
|
import javax.swing.JOptionPane;
|
|
|
|
|
2019-04-15 11:45:15 +02:00
|
|
|
import de.mas.wiiu.jnus.jnustool.gui.NUSGUI;
|
|
|
|
import de.mas.wiiu.jnus.jnustool.util.Settings;
|
2016-02-05 16:40:26 +01:00
|
|
|
|
|
|
|
public class Logger {
|
|
|
|
|
|
|
|
public static void log(String string) {
|
|
|
|
NUSGUI.output.append(string + "\n");
|
|
|
|
NUSGUI.output.setCaretPosition(NUSGUI.output.getDocument().getLength());
|
2016-04-24 13:36:54 +02:00
|
|
|
if(Settings.logToPrintLn) System.out.println(string);
|
2016-02-05 16:40:26 +01:00
|
|
|
}
|
2016-02-06 18:25:08 +01:00
|
|
|
|
|
|
|
public static void messageBox(String string) {
|
|
|
|
JOptionPane.showMessageDialog(new JFrame(), string);
|
|
|
|
}
|
2016-02-05 16:40:26 +01:00
|
|
|
|
|
|
|
}
|