// Initialize the default uncaught exception handler for all other threads
Thread.setDefaultUncaughtExceptionHandler(getDefaultUncaughtExceptionHandler());
// Initialize the uncaught exception handler for JavaFX Application Thread
JRebirth.runIntoJAT(new AbstractJrbRunnable(ATTACH_JAT_UEH.getText()) {
@Override
public void runInto() throws JRebirthThreadException {
Thread.currentThread().setUncaughtExceptionHandler(getJatUncaughtExceptionHandler());
}
});
// Initialize the uncaught exception handler for JRebirth Internal Thread
JRebirth.runIntoJIT(new AbstractJrbRunnable(ATTACH_JIT_UEH.getText()) {
@Override
public void runInto() throws JRebirthThreadException {
Thread.currentThread().setUncaughtExceptionHandler(getJitUncaughtExceptionHandler());
}
});