mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
Table: fixed border arc of components in complex table cell editors (issue #786)
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -26,10 +26,12 @@ FlatLaf Change Log
|
|||||||
#761)
|
#761)
|
||||||
- ScrollPane: Styling ScrollPane border properties did not work if view
|
- ScrollPane: Styling ScrollPane border properties did not work if view
|
||||||
component is a Table.
|
component is a Table.
|
||||||
- Table: Switching theme looses table grid and intercell spacing. (issues #733
|
- Table:
|
||||||
and #750)
|
- Switching theme looses table grid and intercell spacing. (issues #733 and
|
||||||
- Table: Fixed background of `boolean` columns when using alternating row
|
#750)
|
||||||
colors. (issue #780)
|
- Fixed background of `boolean` columns when using alternating row colors.
|
||||||
|
(issue #780)
|
||||||
|
- Fixed border arc of components in complex table cell editors. (issue #786)
|
||||||
- TableHeader: No longer temporary replace header cell renderer while painting.
|
- TableHeader: No longer temporary replace header cell renderer while painting.
|
||||||
This avoids a `StackOverflowError` in case that custom renderer does this too.
|
This avoids a `StackOverflowError` in case that custom renderer does this too.
|
||||||
(see [NetBeans issue #6835](https://github.com/apache/netbeans/issues/6835))
|
(see [NetBeans issue #6835](https://github.com/apache/netbeans/issues/6835))
|
||||||
|
|||||||
@@ -299,16 +299,11 @@ public class FlatUIUtils
|
|||||||
if( c == null )
|
if( c == null )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// check whether used in cell editor (check 3 levels up)
|
// check whether used as table cell editor
|
||||||
Component c2 = c;
|
Container parent = c.getParent();
|
||||||
for( int i = 0; i <= 2 && c2 != null; i++ ) {
|
if( parent instanceof JTable && ((JTable)parent).getEditorComponent() == c )
|
||||||
Container parent = c2.getParent();
|
|
||||||
if( parent instanceof JTable && ((JTable)parent).getEditorComponent() == c2 )
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
c2 = parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
// check whether used as cell editor
|
// check whether used as cell editor
|
||||||
// Table.editor is set in JTable.GenericEditor constructor
|
// Table.editor is set in JTable.GenericEditor constructor
|
||||||
// Tree.cellEditor is set in sun.swing.FilePane.editFileName()
|
// Tree.cellEditor is set in sun.swing.FilePane.editFileName()
|
||||||
|
|||||||
Reference in New Issue
Block a user