-
-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table various UI issues #332
Comments
…st column is not possible because auto resize mode of table is not off (issue #332)
…n upper left corner of scroll pane (issue #332)
Yes. It is actually a Swing bug in class I tried to fix this in cell border FlatTableCellBorder.Focused (as done in class FlatTableCellBorder.Selected), but this does not work because the border does not know what cell it is painting and can not determine whether the cell is selected.
Yes, because the last vertical separator line is hidden 😉
but then is looks odd when there is no scroll bar: A workaround would be to add a border to the vertical scrollbar. E.g.: scrollPane2.getVerticalScrollBar().setBorder( new MatteBorder( 0, 1, 0, 0, UIManager.getColor( "Table.gridColor" ) ) );
Actually a bug in Swing, but I found a workaround and fixed it in commit d508f33
Fixed in commit fa194ec
Yes, since commit 824db2e and 578379f you can use: UIManager.put( "Table.showTrailingVerticalLine", true );
UIManager.put( "TableHeader.showTrailingVerticalLine", true ); |
…lLine` to `Table[Header].showTrailingVerticalLine` (issue #332)
Hi!
I see a certain number of odd behaviors related to tables.

Test code:
Another problem related to the last vertical separator not being painted is when we create advanced tables using a composition of tables. Here is an example taken from a real-world application with FlatLaf, where the first column is a separate table acting like a row header, the second column is a "frozen" (tree) table so that only the rest (a third table) can scroll. At every end of table the separator is missing although it should not in this case:

Is there a global property to paint the last vertical separator? Is there a per-table property to activate/deactivate the painting of the last separator?
And once again, thanks a lot for the great work! 😉
The text was updated successfully, but these errors were encountered: