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

Loading…
Cancel
Save