jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1528321 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
Date Wed, 02 Oct 2013 07:00:01 GMT
Author: pmouawad
Date: Wed Oct  2 07:00:00 2013
New Revision: 1528321

URL: http://svn.apache.org/r1528321
Log:
Fix caret position to avoid scroll down on first view

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java?rev=1528321&r1=1528320&r2=1528321&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
Wed Oct  2 07:00:00 2013
@@ -280,7 +280,8 @@ public class UrlConfigGui extends JPanel
         boolean useRaw = el.getPropertyAsBoolean(HTTPSamplerBase.POST_BODY_RAW, HTTPSamplerBase.POST_BODY_RAW_DEFAULT);
         if(useRaw) {
             String postBody = computePostBody(arguments, true); // Convert CRLF to CR, see
modifyTestElement
-            postBodyContent.setInitialText(postBody);   
+            postBodyContent.setInitialText(postBody); 
+            postBodyContent.setCaretPosition(0);
             postContentTabbedPane.setSelectedIndex(TAB_RAW_BODY, false);
         } else {
             argsPanel.configure(arguments);
@@ -727,6 +728,7 @@ public class UrlConfigGui extends JPanel
      */
     void convertParametersToRaw() {
         postBodyContent.setInitialText(computePostBody((Arguments)argsPanel.createTestElement()));
+        postBodyContent.setCaretPosition(0);
     }
 
     /**



Mime
View raw message