Change LAF Without Reboot

This commit is contained in:
Konloch 2021-06-28 17:47:32 -07:00
parent fe57e4f099
commit 3efffe6ad1

View file

@ -422,6 +422,16 @@ public class MainViewerGUI extends JFrame
rstaThemes.get(Configuration.rstaTheme).setSelected(true);
item.setSelected(true);
Settings.saveSettings();
try
{
theme.setLAF();
SwingUtilities.updateComponentTreeUI(BytecodeViewer.viewer);
}
catch (Exception ex)
{
ex.printStackTrace();
}
});
lafThemes.put(theme, item);