v0.8.0: tweaked look and feel of desktop error message

This commit is contained in:
Evan Debenham 2019-11-11 20:27:36 -05:00
parent b727e0dcce
commit 7114887282

View File

@ -37,6 +37,7 @@ import java.io.PrintWriter;
import java.io.StringWriter;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
public class DesktopLauncher {
public static void main (String[] arg) {
@ -48,6 +49,12 @@ public class DesktopLauncher {
title = DesktopLauncher.class.getPackage().getSpecificationTitle();
}
try {
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
} catch (Exception e) {
e.printStackTrace();
}
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable throwable) {