Author: sebb
Date: Thu Dec  2 17:33:06 2010
New Revision: 1041481

URL: http://svn.apache.org/viewvc?rev=1041481&view=rev
Log:
Ensure content entry field does not get lost

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

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java?rev=1041481&r1=1041480&r2=1041481&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
 Thu Dec  2 17:33:06 2010
@@ -458,13 +458,14 @@ public class UrlConfigGui extends JPanel
         }
         // PROTOCOL
         protocol = new JTextField(4);
+        JLabel protocolLabel = new 
JLabel(JMeterUtils.getResString("protocol")); // $NON-NLS-1$
+        protocolLabel.setLabelFor(protocol);        
+        
         // CONTENT_ENCODING
         contentEncoding = new JTextField(10);
-
-        JLabel protocolLabel = new 
JLabel(JMeterUtils.getResString("protocol")); // $NON-NLS-1$
-        protocolLabel.setLabelFor(protocol);
         JLabel contentEncodingLabel = new 
JLabel(JMeterUtils.getResString("content_encoding")); // $NON-NLS-1$
-        protocolLabel.setLabelFor(contentEncoding);
+        contentEncodingLabel.setLabelFor(contentEncoding);
+
         if (notConfigOnly){
             method = new JLabeledChoice(JMeterUtils.getResString("method"), // 
$NON-NLS-1$
                     HTTPSamplerBase.getValidMethodsAsArray());
@@ -487,6 +488,7 @@ public class UrlConfigGui extends JPanel
 
         panel.add(contentEncodingLabel);
         panel.add(contentEncoding);
+        panel.setMinimumSize(panel.getPreferredSize());
         return panel;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to