airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1533200 - /airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/ApplicationDescriptionHostAdvancedOptionDialog.java
Date Thu, 17 Oct 2013 18:25:56 GMT
Author: samindaw
Date: Thu Oct 17 18:25:56 2013
New Revision: 1533200

URL: http://svn.apache.org/r1533200
Log:
adding scroll bars to host advance options + jobtype serial as default

Modified:
    airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/ApplicationDescriptionHostAdvancedOptionDialog.java

Modified: airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/ApplicationDescriptionHostAdvancedOptionDialog.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/ApplicationDescriptionHostAdvancedOptionDialog.java?rev=1533200&r1=1533199&r2=1533200&view=diff
==============================================================================
--- airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/ApplicationDescriptionHostAdvancedOptionDialog.java
(original)
+++ airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/ui/dialogs/descriptors/ApplicationDescriptionHostAdvancedOptionDialog.java
Thu Oct 17 18:25:56 2013
@@ -33,6 +33,7 @@ import javax.swing.DefaultComboBoxModel;
 import javax.swing.JButton;
 import javax.swing.JDialog;
 import javax.swing.JOptionPane;
+import javax.swing.JScrollPane;
 
 import org.apache.airavata.client.api.AiravataAPI;
 import org.apache.airavata.common.utils.SwingUtil;
@@ -198,7 +199,9 @@ public class ApplicationDescriptionHostA
         buttonPane.add(okButton);
         buttonPane.add(cancelButton);
         
-        getContentPane().add(panel.getSwingComponent());
+        JScrollPane thePane = new JScrollPane(panel.getSwingComponent());
+
+        getContentPane().add(thePane);
         getContentPane().add(buttonPane.getSwingComponent());
         SwingUtil.layoutToGrid(getContentPane(), 2, 1, 0, 0);
         setResizable(true);
@@ -210,9 +213,9 @@ public class ApplicationDescriptionHostA
 	private List<JobTypeType.Enum> getJobTypes() {
 		if (jobTypes==null){
 			jobTypes = new ArrayList<Enum>();
+			jobTypes.add(JobTypeType.SERIAL);
 			jobTypes.add(JobTypeType.OPEN_MP);
 			jobTypes.add(JobTypeType.MPI);
-			jobTypes.add(JobTypeType.SERIAL);
 //            jobTypes.add(JobTypeType.SINGLE);
 		}
 		return jobTypes;



Mime
View raw message