mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
focus indication border (or background) no longer hidden when temporary loosing focus (e.g. showing a popup menu)
This commit is contained in:
@@ -20,6 +20,7 @@ import java.awt.Component;
|
||||
import javax.swing.JTable;
|
||||
import org.jdesktop.swingx.JXDatePicker;
|
||||
import com.formdev.flatlaf.ui.FlatRoundBorder;
|
||||
import com.formdev.flatlaf.ui.FlatUIUtils;
|
||||
|
||||
/**
|
||||
* Border for {@link org.jdesktop.swingx.JXDatePicker}.
|
||||
@@ -32,7 +33,7 @@ public class FlatDatePickerBorder
|
||||
@Override
|
||||
protected boolean isFocused( Component c ) {
|
||||
if( c instanceof JXDatePicker )
|
||||
return ((JXDatePicker)c).getEditor().hasFocus();
|
||||
return FlatUIUtils.isPermanentFocusOwner( ((JXDatePicker)c).getEditor() );
|
||||
|
||||
return super.isFocused( c );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user