Merge pull request #496 from Bl3nd/master

Font size spinner also updates opened tabs automatically now.
This commit is contained in:
Konloch 2024-04-12 23:49:22 -07:00 committed by GitHub
commit 4399f0552d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

AI 샘플 코드 생성 중입니다

Loading...
2 changed files with 4 additions and 6 deletions

View File

@ -675,7 +675,7 @@ public class BytecodeViewer
}
/**
* Refreshes the title on all of the opened tabs
* Refreshes all the opened tabs
*/
public static void refreshAllTabs()
{
@ -684,7 +684,7 @@ public class BytecodeViewer
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);

View File

@ -2,10 +2,8 @@ package the.bytecode.club.bytecodeviewer.gui;
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 class MainViewerGUI extends JFrame
uiComponents.add(resourcePane);
uiComponents.add(searchBoxPane);
uiComponents.add(workPane);
// uiComponents.add(hierarchy);
viewPane1.setDefault();
viewPane2.setDefault();
@ -465,6 +462,7 @@ public class MainViewerGUI extends JFrame
BytecodeViewer.updateAllFonts(font);
BytecodeViewer.updateUI();
BytecodeViewer.refreshAllTabs();
});
fontSize.add(fontSpinner);