SwingX: fixed too wide border when using date picker as table cell editor (issue #24)

This commit is contained in:
Karl Tauber
2019-11-26 00:05:38 +01:00
parent 711c4dd2b5
commit c513c052fc
5 changed files with 143 additions and 58 deletions

View File

@@ -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;
}
}