From 87ccd0b1c2a968c88f8f7a46b5fd9d2bb6cc339a Mon Sep 17 00:00:00 2001 From: Wolf Posdorfer Date: Wed, 29 Jun 2011 07:58:13 +0000 Subject: [PATCH] clear all rows button now clears all rows patch by lemon git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_2_0@12548 b35dd754-fafc-0310-a699-88a17e54d16e --- .../org/jivesoftware/smackx/debugger/EnhancedDebugger.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java b/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java index 1c7d8a55f..591726374 100644 --- a/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java +++ b/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java @@ -326,10 +326,7 @@ public class EnhancedDebugger implements SmackDebugger { @Override public void actionPerformed(ActionEvent e) { - for(int i=0; i< messagesTable.getRowCount();i++) - { - messagesTable.removeRow(i); - } + messagesTable.setRowCount(0); } });