no message

This commit is contained in:
2024-10-15 12:45:13 +03:00
parent 2999390b91
commit e4d907e4a3
4 changed files with 11 additions and 26 deletions

View File

@@ -79,5 +79,13 @@ public class UI_ {
JOptionPane.YES_NO_OPTION,
JOptionPane.WARNING_MESSAGE) == 0;
}
//-----
public static void ShowTabsNames(JTabbedPane tabs, boolean flag) {
ShowTabsNames(tabs, 0, flag);
}
public static void ShowTabsNames(JTabbedPane tabs, int startIndex, boolean flag) {
for (int i = startIndex; i < tabs.getTabCount(); ++i)
tabs.setTitleAt(i, flag ? tabs.getToolTipTextAt(i) : "");
}
//--
}