setVisible replaces show
authoramwaterhouse <Andrew Waterhouse>
Mon, 30 Apr 2007 15:02:27 +0000 (15:02 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 30 Apr 2007 15:02:27 +0000 (15:02 +0000)
src/MCview/PDBViewer.java
src/jalview/appletgui/EditNameDialog.java
src/jalview/appletgui/FeatureRenderer.java
src/jalview/appletgui/UserDefinedColours.java

index b44dece..5f73f46 100755 (executable)
@@ -283,10 +283,8 @@ System.out.println("HOVER "+atomIndex+" "+strInfo);
      System.out.println("SHOW CONSOLE" +(scriptWindow==null));
      if (scriptWindow == null)
        return;
-     if (showConsole)
-       scriptWindow.show();
-     else
-       scriptWindow.hide();
+
+     scriptWindow.setVisible(showConsole);
    }
 
    public float functionXY(String functionName, int x, int y) {
index 1c365ba..ca029c8 100644 (file)
@@ -76,6 +76,6 @@ public class EditNameDialog extends JVDialog
       panel.add(panel2, BorderLayout.CENTER);\r
     }\r
     setMainPanel(panel);\r
-    show();\r
+    setVisible(true);\r
   }\r
 }\r
index 6ab6060..c90fb47 100755 (executable)
@@ -295,7 +295,7 @@ public class FeatureRenderer
       }\r
     });\r
 \r
-    dialog.show();\r
+    dialog.setVisible(true);\r
 \r
     jalview.io.FeaturesFile ffile = new jalview.io.FeaturesFile();\r
 \r
index 282e757..6e14146 100755 (executable)
@@ -89,7 +89,7 @@ public class UserDefinedColours
     originalLabel = "Feature Colour";\r
     setForDialog("Select Feature Colour", alignframe);\r
     setTargetColour(fr.colourPanel.getBackground());\r
-    dialog.show();\r
+    dialog.setVisible(true);\r
   }\r
 \r
   public UserDefinedColours(Component caller,\r
@@ -101,7 +101,7 @@ public class UserDefinedColours
     originalLabel = "Select Colour";\r
     setForDialog("Select Colour", alignframe);\r
     setTargetColour(col1);\r
-    dialog.show();\r
+    dialog.setVisible(true);\r
   }\r
 \r
 \r