mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-4493 fix GTabPanel to not show borders when no tabs are present
This commit is contained in:
parent
cb141a391d
commit
f1df4924e8
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,6 @@ public class GTabPanel<T> extends JPanel {
|
|||
this.tabTypeName = tabTypeName;
|
||||
setLayout(new HorizontalLayout(0));
|
||||
setFocusable(true);
|
||||
setBorder(new GTabPanelBorder());
|
||||
getAccessibleContext().setAccessibleDescription(
|
||||
"Use left and right arrows to highlight other tabs and press enter to select " +
|
||||
"the highlighted tab");
|
||||
|
@ -491,11 +490,13 @@ public class GTabPanel<T> extends JPanel {
|
|||
allTabs.clear();
|
||||
removeAll();
|
||||
closeTabList();
|
||||
setBorder(null);
|
||||
if (!shouldShowTabs()) {
|
||||
revalidate();
|
||||
repaint();
|
||||
return;
|
||||
}
|
||||
setBorder(new GTabPanelBorder());
|
||||
|
||||
GTab<T> selectedTab = null;
|
||||
int availableWidth = getPanelWidth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue