mirror of
https://github.com/Maschell/JNUSTool.git
synced 2024-06-02 15:38:47 +02:00
1d1d4b4d44
updated csv version bump
22 lines
512 B
Java
22 lines
512 B
Java
package de.mas.jnustool;
|
|
|
|
import javax.swing.JFrame;
|
|
import javax.swing.JOptionPane;
|
|
|
|
import de.mas.jnustool.gui.NUSGUI;
|
|
import de.mas.jnustool.util.Settings;
|
|
|
|
public class Logger {
|
|
|
|
public static void log(String string) {
|
|
NUSGUI.output.append(string + "\n");
|
|
NUSGUI.output.setCaretPosition(NUSGUI.output.getDocument().getLength());
|
|
if(Settings.logToPrintLn) System.out.println(string);
|
|
}
|
|
|
|
public static void messageBox(String string) {
|
|
JOptionPane.showMessageDialog(new JFrame(), string);
|
|
}
|
|
|
|
}
|