PropertyChangeListener () { return e -> { if ("enabled".equals(e.getPropertyName())) { EditorTextField etf = UIUtil.findComponentOfType((JComponent)editor, EditorTextField.class); if (etf != null) { boolean enabled = e.getNewValue() == Boolean.TRUE; Color color = UIManager.getColor(enabled ? "TextField.background" : "ComboBox.disabledBackground"); etf.setBackground(color); } } }; }