Bug 62155 - Search Feature: Make Search text field get focus

Bugzilla Id: 62155

git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1825823 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Philippe Mouawad 2018-03-04 16:34:38 +00:00
parent e2270cd9d8
commit f3e43abf90
3 changed files with 16 additions and 0 deletions

View File

@ -54,6 +54,7 @@ import org.apache.jmeter.gui.Replaceable;
import org.apache.jmeter.gui.Searchable;
import org.apache.jmeter.gui.tree.JMeterTreeModel;
import org.apache.jmeter.gui.tree.JMeterTreeNode;
import org.apache.jmeter.gui.util.FocusRequester;
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.util.JMeterUtils;
import org.apache.jorphan.gui.ComponentUtil;
@ -331,4 +332,13 @@ public class SearchTreeDialog extends JDialog implements ActionListener {
searchTF.requestFocusInWindow();
}
/* (non-Javadoc)
* @see java.awt.Dialog#setVisible(boolean)
*/
@Override
public void setVisible(boolean b) {
super.setVisible(b);
searchTF.requestFocusInWindow();
}
}

View File

@ -269,4 +269,9 @@ public class JLabeledTextField extends JPanel implements JLabeledField, FocusLis
mChangeListener.stateChanged(ce);
}
}
@Override
public boolean requestFocusInWindow() {
return mTextField.requestFocusInWindow();
}
}

View File

@ -178,6 +178,7 @@ this behaviour, set <code>httpclient.reset_state_on_thread_group_iteration=false
<li><pr>377</pr>Small fix of the docs. Contributed by Peter Doornbosch (peter.doornbosch at luminis.eu)</li>
<li><bug>62124</bug>Recording templates : Add more exclusions and use Transaction Name by default</li>
<li><bug>62127</bug>Store filename as String instead of File in FileEditor. This will prevent conversion of filenames from unix style path separators to Windows style when used for example in CSV Data Set Config.</li>
<li><bug>62155</bug>Search Feature: Make Search text field get focus</li>
</ul>
<!-- =================== Thanks =================== -->