diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index 236790040..8da7b7fff 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -675,7 +675,7 @@ public static void refreshAllTabTitles() } /** - * Refreshes the title on all of the opened tabs + * Refreshes all the opened tabs */ public static void refreshAllTabs() { @@ -684,7 +684,7 @@ public static void refreshAllTabs() updateBusyStatus(true); for (int i = 0; i < BytecodeViewer.viewer.workPane.tabs.getTabCount(); i++) { - ResourceViewer viewer = ((TabbedPane) BytecodeViewer.viewer.workPane.tabs.getTabComponentAt(i)).resource; + ResourceViewer viewer = (ResourceViewer) BytecodeViewer.viewer.workPane.tabs.getComponentAt(i); viewer.refresh(null); } updateBusyStatus(false); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java index f81342342..6938f6f41 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java @@ -2,10 +2,8 @@ import java.awt.*; import java.io.File; -import java.util.ArrayList; -import java.util.HashMap; +import java.util.*; import java.util.List; -import java.util.Map; import javax.swing.*; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; @@ -352,7 +350,6 @@ public MainViewerGUI() uiComponents.add(resourcePane); uiComponents.add(searchBoxPane); uiComponents.add(workPane); -// uiComponents.add(hierarchy); viewPane1.setDefault(); viewPane2.setDefault(); @@ -465,6 +462,7 @@ public void buildSettingsMenu() BytecodeViewer.updateAllFonts(font); BytecodeViewer.updateUI(); + BytecodeViewer.refreshAllTabs(); }); fontSize.add(fontSpinner);