mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
SwingX: fixed too wide border when using date picker as table cell editor (issue #24)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.formdev.flatlaf.swingx.ui;
|
||||
|
||||
import java.awt.Component;
|
||||
import javax.swing.JTable;
|
||||
import org.jdesktop.swingx.JXDatePicker;
|
||||
import com.formdev.flatlaf.ui.FlatRoundBorder;
|
||||
|
||||
@@ -35,4 +36,9 @@ public class FlatDatePickerBorder
|
||||
|
||||
return super.isFocused( c );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isTableCellEditor( Component c ) {
|
||||
return c.getParent() instanceof JTable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user