jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milam...@apache.org
Subject svn commit: r1416732 - /jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java
Date Mon, 03 Dec 2012 23:50:12 GMT
Author: milamber
Date: Mon Dec  3 23:50:10 2012
New Revision: 1416732

URL: http://svn.apache.org/viewvc?rev=1416732&view=rev
Log:
Change the alignment from a vertical column to a horizontal row (better view)
Bugzilla Id: 54155

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java?rev=1416732&r1=1416731&r2=1416732&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/control/gui/ModuleControllerGui.java Mon
Dec  3 23:50:10 2012
@@ -18,12 +18,13 @@
 
 package org.apache.jmeter.control.gui;
 
-import java.awt.BorderLayout;
+import java.awt.Dimension;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.util.Collection;
 import java.util.Iterator;
 
+import javax.swing.Box;
 import javax.swing.BoxLayout;
 import javax.swing.DefaultComboBoxModel;
 import javax.swing.JButton;
@@ -176,17 +177,19 @@ public class ModuleControllerGui extends
 
         // DROP-DOWN MENU
         JPanel modulesPanel = new JPanel();
-        modulesPanel.setLayout(new BoxLayout(modulesPanel, BoxLayout.Y_AXIS));
+        modulesPanel.setLayout(new BoxLayout(modulesPanel, BoxLayout.X_AXIS));
         JLabel nodesLabel = new JLabel(JMeterUtils.getResString("module_controller_module_to_run"));
// $NON-NLS-1$
-        modulesPanel.add(nodesLabel, BorderLayout.NORTH);
+        modulesPanel.add(nodesLabel);
+        modulesPanel.add(Box.createRigidArea(new Dimension(5,0)));
         nodesLabel.setLabelFor(nodes);
         reinitialize();
-        modulesPanel.add(nodes, BorderLayout.CENTER);
-        modulesPanel.add(warningLabel, BorderLayout.EAST);
-        
+        modulesPanel.add(nodes);
+        modulesPanel.add(warningLabel);
+
+        modulesPanel.add(Box.createRigidArea(new Dimension(5,0)));
         expandButton = new JButton(JMeterUtils.getResString("expand")); //$NON-NLS-1$
         expandButton.addActionListener(this);
-        modulesPanel.add(expandButton, BorderLayout.SOUTH);
+        modulesPanel.add(expandButton);
         add(modulesPanel);
     }
 



Mime
View raw message