Browse Source

Minor formatting.

pull/130/head
weisj 5 years ago
parent
commit
70fc6f19ca
  1. 12
      core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java

12
core/src/main/java/com/github/weisj/darklaf/ui/table/DarkTableUI.java

@ -258,11 +258,11 @@ public class DarkTableUI extends DarkTableUIBridge implements FocusListener {
int tableHeight = getPreferredSize(table).height;
int x;
boolean ltr = table.getComponentOrientation().isLeftToRight();
x = damagedArea.x;
if (scrollPaneRtl && scrollBarVisible()) {
SwingUtilities2.drawVLine(g, x, 0, tableHeight - 1);
}
if (ltr) {
x = damagedArea.x;
if (scrollPaneRtl && scrollBarVisible()) {
SwingUtilities2.drawVLine(g, x, 0, tableHeight - 1);
}
for (int column = cMin; column <= cMax; column++) {
int w = cm.getColumn(column).getWidth();
x += w;
@ -271,10 +271,6 @@ public class DarkTableUI extends DarkTableUIBridge implements FocusListener {
}
}
} else {
x = damagedArea.x;
if (scrollPaneRtl && scrollBarVisible()) {
SwingUtilities2.drawVLine(g, x, 0, tableHeight - 1);
}
for (int column = cMax; column >= cMin; column--) {
int w = cm.getColumn(column).getWidth();
x += w;

Loading…
Cancel
Save