# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: D:\projects\nb\openide\explorer\src\org\openide\explorer\propertysheet # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: CleanComboUI.java *** D:\projects\nb\openide\explorer\src\org\openide\explorer\propertysheet\CleanComboUI.java Base (1.2) --- D:\projects\nb\openide\explorer\src\org\openide\explorer\propertysheet\CleanComboUI.java Locally Modified (Based On 1.2) *************** *** 33,39 **** import javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager; import javax.swing.plaf.metal.MetalComboBoxIcon; - /** A combobox ui delegate that hides the border for use in the property * sheet, and does not have problems with firing unexpected focus lost * events that confuse the property sheet. --- 33,38 ---- *************** *** 143,149 **** * will be events in which removeEditor() will be called because the * editor's action has been performed. */ protected FocusListener createFocusListener() { ! return super.createFocusListener(); /* --- 142,159 ---- * will be events in which removeEditor() will be called because the * editor's action has been performed. */ protected FocusListener createFocusListener() { ! final FocusListener orig = super.createFocusListener(); ! return new FocusListener() { ! public void focusGained(FocusEvent e) { ! orig.focusGained( e ); ! } ! public void focusLost(FocusEvent e) { ! Component src = (Component)e.getSource(); ! if( src instanceof ComboInplaceEditor || (null != src.getParent() && src.getParent() instanceof ComboInplaceEditor) ) ! e = new FocusEvent( (Component)e.getSource(), e.getID(), true, e.getOppositeComponent() ); ! orig.focusLost( e ); ! } ! }; /* *************** *** 299,304 **** --- 309,324 ---- } } + protected void configureEditor() { + super.configureEditor(); + FocusListener[] listeners = editor.getFocusListeners(); + for( int i=0; i