improve reselection of currently selected row after a refilter

Project: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/commit/5343147f
Tree: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/tree/5343147f
Diff: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/diff/5343147f

Branch: refs/heads/master
Commit: 5343147f8ca4316d7d59a44f985c9f9086089c06
Parents: 0dcec14
Author: Scott Deboy <[email protected]>
Authored: Sat Oct 23 04:40:15 2010 +0000
Committer: Scott Deboy <[email protected]>
Committed: Sat Oct 23 04:40:15 2010 +0000

----------------------------------------------------------------------
 .../apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-chainsaw/blob/5343147f/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java 
b/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
index c11c565..ad51455 100644
--- 
a/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
+++ 
b/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
@@ -194,8 +194,8 @@ class ChainsawCyclicBufferTableModel extends 
AbstractTableModel
                                fireTableDataChanged();
                        }
                notifyCountListeners();
-            //post refilter with newValue of FALSE (filtering is complete) 
(enqueue on EDT, don't run now)
-            EventQueue.invokeLater(new Runnable() {
+            //post refilter with newValue of FALSE (filtering is complete)
+            SwingHelper.invokeOnEDT(new Runnable() {
                 public void run() {
                     propertySupport.firePropertyChange("refilter", 
Boolean.TRUE, Boolean.FALSE);
                 }

Reply via email to