Change LAF Without Reboot

This commit is contained in:
Konloch 2021-06-28 17:47:32 -07:00
parent fe57e4f099
commit 3efffe6ad1
1 changed files with 10 additions and 0 deletions

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);