jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1407694 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java
Date Fri, 09 Nov 2012 23:44:31 GMT
Author: pmouawad
Date: Fri Nov  9 23:44:30 2012
New Revision: 1407694

URL: http://svn.apache.org/viewvc?rev=1407694&view=rev
Log:
Make searchTF get focus when Search Dialog is reopened 

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java?rev=1407694&r1=1407693&r2=1407694&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java Fri Nov  9 23:44:30
2012
@@ -54,7 +54,7 @@ import org.apache.jorphan.logging.Loggin
 import org.apache.log.Logger;
 
 /**
- * 
+ * FIXME Why is searchTF not getting focus correctly after having been setVisible(false)
once
  */
 public class SearchTreeDialog extends JDialog implements ActionListener {
     /**
@@ -163,6 +163,7 @@ public class SearchTreeDialog extends JD
      */
     public void actionPerformed(ActionEvent e) {
     	if(e.getSource()==cancelButton) {
+    	    searchTF.requestFocusInWindow();
     		this.setVisible(false);
     		return;
     	} 
@@ -212,6 +213,7 @@ public class SearchTreeDialog extends JD
             jMeterTreeNode.setMarkedBySearch(true);
         }
         GuiPackage.getInstance().getMainFrame().repaint();
+        searchTF.requestFocusInWindow();
         this.setVisible(false);
 	}
 }
\ No newline at end of file



Mime
View raw message