#447 standard non ribbon interface: advanced settings added to allow switch back:)

This commit is contained in:
Honfika
2013-12-27 08:57:53 +01:00
parent 88c96e2c91
commit ea8221524a
3 changed files with 18 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.SwingWorker;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.filechooser.FileFilter;
/**
@@ -397,6 +398,7 @@ public class Main {
mainFrame.setVisible(false);
mainFrame = null;
}
initGui();
reloadSWFs();
}
@@ -592,6 +594,12 @@ public class Main {
private static void initGui() {
if (Configuration.useRibbonInterface.get()) {
View.setLookAndFeel();
} else {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
View.execInEventDispatch(new Runnable() {
@Override