svoid addOrReplaceTab(JTabbedPane tabs, S tabName, Swingable c) { addOrReplaceTab(tabs, tabName, wrap(c)); } svoid addOrReplaceTab(JTabbedPane tabs, S tabName, Component c) swing { if (tabs == null) ret; int idx = indexOfTabName(tabs, tabName); if (idx >= 0) setTab(tabs, idx, c); else addTabs(tabs, tabName, c); }