v0.8.0: tweaked look and feel of desktop error message
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user