@Override
public void windowClosing(WindowEvent e) {
if (getJobBar().hasChildren()) {
String text = "There are jobs running, force exit?";
ConfirmDialog confirm = new ConfirmDialog(null, "Confirm Exit", null, text);
if (!confirm.show()) {
return;
}
}
super.windowClosing(e);
}