/** Overridden to use CleanComboUI on Metal L&F to avoid extra borders */ @Override public void updateUI() { LookAndFeel lf = UIManager.getLookAndFeel(); String id = lf.getID(); boolean useClean = tableUI && (lf instanceof MetalLookAndFeel || "GTK".equals(id) //NOI18N || ("Aqua".equals(id) && "10.5".compareTo(System.getProperty("os.version")) <= 0) //NOI18N || PropUtils.isWindowsVistaLaF() //#217957 || "Kunststoff".equals(id)); //NOI18N if (useClean) { super.setUI(PropUtils.createComboUI(this, tableUI)); } else { super.updateUI(); } if (tableUI & getEditor().getEditorComponent() instanceof JComponent) { ((JComponent) getEditor().getEditorComponent()).setBorder(null); } }
/** Overridden to use CleanComboUI on Metal L&F to avoid extra borders */ public void updateUI() { LookAndFeel lf = UIManager.getLookAndFeel(); String id = lf.getID(); boolean useClean = tableUI && (lf instanceof MetalLookAndFeel || "GTK".equals(id) || "Kunststoff".equals(id)); //NOI18N if (useClean) { super.setUI (PropUtils.createComboUI(this, tableUI)); } else { super.updateUI(); } if (tableUI & getEditor().getEditorComponent() instanceof JComponent) { ((JComponent) getEditor().getEditorComponent()).setBorder(null); } }
/** Overridden to use CleanComboUI on Metal L&F to avoid extra borders */ public void updateUI() { LookAndFeel lf = UIManager.getLookAndFeel(); String id = lf.getID(); boolean useClean = tableUI && (lf instanceof MetalLookAndFeel || "GTK".equals(id) || "Kunststoff".equals(id)); //NOI18N if (useClean) { super.setUI (PropUtils.createComboUI(this, tableUI)); } else { super.updateUI(); } if (tableUI & getEditor().getEditorComponent() instanceof JComponent) { ((JComponent) getEditor().getEditorComponent()).setBorder(null); } }