/** Installs the UI delegate for the specified component */ public void installUI(JComponent c) { super.installUI(c); Object paletteProp = c.getClientProperty(IS_PALETTE); if (paletteProp != null) { setPalette(((Boolean) paletteProp).booleanValue()); } Container content = frame.getContentPane(); stripContentBorder(content); // c.setOpaque(false); }