@Override protected void uninstallDefaults() { SeaGlassContext context = getContext(toolBar, ENABLED); style.uninstallDefaults(context); context.dispose(); style = null; handleIcon = null; context = getContext(toolBar, Region.TOOL_BAR_CONTENT, contentStyle, ENABLED); contentStyle.uninstallDefaults(context); context.dispose(); contentStyle = null; context = getContext(toolBar, Region.TOOL_BAR_DRAG_WINDOW, dragWindowStyle, ENABLED); dragWindowStyle.uninstallDefaults(context); context.dispose(); dragWindowStyle = null; toolBar.setLayout(null); }
/** @inheritDoc */ @Override protected void uninstallDefaults() { SeaGlassContext context = getContext(getComponent(), ENABLED); JComponent c = getComponent(); c.putClientProperty("caretAspectRatio", null); style.uninstallDefaults(context); context.dispose(); style = null; Object clientProperty = c.getClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES); if (clientProperty == localTrue) { c.putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.FALSE); } super.uninstallDefaults(); }
/** @see javax.swing.plaf.basic.BasicTableUI#uninstallDefaults() */ protected void uninstallDefaults() { table.setDefaultRenderer(Date.class, dateRenderer); table.setDefaultRenderer(Number.class, numberRenderer); table.setDefaultRenderer(Double.class, doubleRender); table.setDefaultRenderer(Float.class, floatRenderer); table.setDefaultRenderer(Icon.class, iconRenderer); table.setDefaultRenderer(ImageIcon.class, imageIconRenderer); table.setDefaultRenderer(Boolean.class, booleanRenderer); table.setDefaultRenderer(Object.class, objectRenderer); if (table.getTransferHandler() instanceof UIResource) { table.setTransferHandler(null); } SeaGlassContext context = getContext(table, ENABLED); style.uninstallDefaults(context); context.dispose(); style = null; }
/** @see javax.swing.plaf.basic.BasicTextUI#uninstallDefaults() */ protected void uninstallDefaults() { JTextComponent c = getComponent(); SeaGlassContext context = getContext(c, ENABLED); // Remove the search border, if present. Border border = c.getBorder(); if (border instanceof TextFieldBorder) { c.setBorder(null); } c.putClientProperty("caretAspectRatio", null); c.removeFocusListener(this); style.uninstallDefaults(context); context.dispose(); style = null; super.uninstallDefaults(); }