From 6bb0d26301c22d3c7d12a0dd0ab5b8dbfffc0710 Mon Sep 17 00:00:00 2001 From: Ruslan Diachenko Date: Sat, 8 Aug 2015 23:21:28 +0100 Subject: [PATCH] Issue #1566: column X should be alone on a line fixed --- .../com/puppycrawl/tools/checkstyle/gui/JTreeTable.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java b/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java index 40bb06b73..6bd553721 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/gui/JTreeTable.java @@ -301,7 +301,8 @@ public class JTreeTable extends JTable { int row, int column) { if (isSelected) { setBackground(table.getSelectionBackground()); - } else { + } + else { setBackground(table.getBackground()); } @@ -408,7 +409,8 @@ public class JTreeTable extends JTable { updatingListSelectionModel = true; try { super.resetRowSelection(); - } finally { + } + finally { updatingListSelectionModel = false; } } @@ -455,7 +457,8 @@ public class JTreeTable extends JTable { } } } - } finally { + } + finally { updatingListSelectionModel = false; } }