airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samin...@apache.org
Subject svn commit: r1242836 - in /incubator/airavata/trunk/modules: commons/utils/src/main/java/org/apache/airavata/common/utils/ xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/
Date Fri, 10 Feb 2012 16:09:55 GMT
Author: samindaw
Date: Fri Feb 10 16:09:55 2012
New Revision: 1242836

URL: http://svn.apache.org/viewvc?rev=1242836&view=rev
Log:
adjusting window sizes to support linux

Modified:
    incubator/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/SwingUtil.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionDialog.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionHostAdvancedOptionDialog.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/HostDescriptionDialog.java
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ServiceDescriptionDialog.java

Modified: incubator/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/SwingUtil.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/SwingUtil.java?rev=1242836&r1=1242835&r2=1242836&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/SwingUtil.java
(original)
+++ incubator/airavata/trunk/modules/commons/utils/src/main/java/org/apache/airavata/common/utils/SwingUtil.java
Fri Feb 10 16:09:55 2012
@@ -358,12 +358,4 @@ public class SwingUtil {
     	}
     }
     
-    public static void adjustWindowSize(JDialog window){
-    	while(true){
-    		Rectangle bounds = window.getBounds();
-    		JOptionPane.showMessageDialog(window, window.getComponentCount());
-    		window.getComponents()[0].setBounds(0,0,bounds.width,bounds.height);
-    		break;
-    	}
-    }
 }
\ No newline at end of file

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java?rev=1242836&r1=1242835&r2=1242836&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionAdvancedOptionDialog.java
Fri Feb 10 16:09:55 2012
@@ -111,7 +111,7 @@ public class ApplicationDescriptionAdvan
 	private void initGUI() {
         setTitle("Application Description Advance Options");
         setModal(true);
-        setBounds(100, 100, 600, 320);
+        setBounds(100, 100, 600, 400);
         setLocationRelativeTo(null);
         GridPanel buttonPane = new GridPanel();
         okButton = new JButton("Update");
@@ -260,7 +260,7 @@ public class ApplicationDescriptionAdvan
         getContentPane().add(panel.getSwingComponent());
         getContentPane().add(buttonPane.getSwingComponent());
         SwingUtil.layoutToGrid(getContentPane(), 2, 1, 0, 0);
-        setResizable(false);
+        setResizable(true);
         getRootPane().setDefaultButton(okButton);
     }
 

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionDialog.java?rev=1242836&r1=1242835&r2=1242836&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionDialog.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionDialog.java
Fri Feb 10 16:09:55 2012
@@ -163,7 +163,7 @@ public class ApplicationDescriptionDialo
 		}else{
 			setTitle("Update Deployment Description: "+getOriginalDeploymentDescription().getType().getApplicationName().getStringValue());
 		}
-		setBounds(100, 100, 500, 520);
+		setBounds(100, 100, 600, 620);
         setModal(true);
         setLocationRelativeTo(null);
         GridPanel buttonPane = new GridPanel();
@@ -312,7 +312,7 @@ public class ApplicationDescriptionDialo
 
             cmbServiceName = new JComboBox();
             cmbServiceName.addActionListener(this);
-            cmbServiceName.setRenderer(new DefaultListCellRenderer());
+//            cmbServiceName.setRenderer(new DefaultListCellRenderer());
             cmbHostName = new JComboBox();
             cmbHostName.addActionListener(this);
 
@@ -414,7 +414,7 @@ public class ApplicationDescriptionDialo
             infoPanel.add(infoPanel4);
             
             SwingUtil.layoutToGrid(infoPanel.getSwingComponent(), 8, 1, SwingUtil.WEIGHT_NONE,
0);
-            
+            SwingUtil.layoutToGrid(buttonPane.getSwingComponent(), 1, buttonPane.getContentPanel().getComponentCount(),SwingUtil.WEIGHT_NONE,0);
             getContentPane().add(infoPanel.getSwingComponent());
             getContentPane().add(buttonPane.getSwingComponent());
             
@@ -425,7 +425,7 @@ public class ApplicationDescriptionDialo
             loadServiceDescriptions();
             loadHostDescriptions();
         }
-        setResizable(false);
+        setResizable(true);
         getRootPane().setDefaultButton(okButton);
         if (!isNewDescritor()){
         	loadData();

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionHostAdvancedOptionDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionHostAdvancedOptionDialog.java?rev=1242836&r1=1242835&r2=1242836&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionHostAdvancedOptionDialog.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ApplicationDescriptionHostAdvancedOptionDialog.java
Fri Feb 10 16:09:55 2012
@@ -87,7 +87,7 @@ public class ApplicationDescriptionHostA
     private void initGUI() {
         setTitle("Host Description Advance Options");
         setModal(true);
-        setBounds(100, 100, 400, 250);
+        setBounds(100, 100, 400, 300);
         setLocationRelativeTo(null);
         GridPanel buttonPane = new GridPanel();
         okButton = new JButton("Update");

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/HostDescriptionDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/HostDescriptionDialog.java?rev=1242836&r1=1242835&r2=1242836&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/HostDescriptionDialog.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/HostDescriptionDialog.java
Fri Feb 10 16:09:55 2012
@@ -159,7 +159,7 @@ public class HostDescriptionDialog exten
      * Initializes the GUI.
      */
     private void initGUI() {
-    	setBounds(100, 100, 400, 280);
+    	setBounds(100, 100, 400, 330);
     	setModal(true);
         setLocationRelativeTo(null);
         if (isNewHost()) {

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ServiceDescriptionDialog.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ServiceDescriptionDialog.java?rev=1242836&r1=1242835&r2=1242836&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ServiceDescriptionDialog.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/appwrapper/ServiceDescriptionDialog.java
Fri Feb 10 16:09:55 2012
@@ -334,7 +334,6 @@ public class ServiceDescriptionDialog ex
         if (!isNewDescription()){
         	loadData();
         }
-        SwingUtil.adjustWindowSize(getDialog());
     }
 
     private void loadData() {



Mime
View raw message