void (TabbedPaneUI ui) { boolean value = UIManager.getBoolean("TabbedPane.contentOpaque"); UIManager.getDefaults().put("TabbedPane.contentOpaque", Boolean.FALSE); try { super.setUI(ui); } finally { UIManager.getDefaults().put("TabbedPane.contentOpaque", Boolean.valueOf(value)); } }