From f95c61a93c12747921e69910e769b1ac308ddf4a Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 30 Apr 2007 15:02:27 +0000 Subject: [PATCH] setVisible replaces show --- src/MCview/PDBViewer.java | 6 ++---- src/jalview/appletgui/EditNameDialog.java | 2 +- src/jalview/appletgui/FeatureRenderer.java | 2 +- src/jalview/appletgui/UserDefinedColours.java | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/MCview/PDBViewer.java b/src/MCview/PDBViewer.java index b44dece..5f73f46 100755 --- a/src/MCview/PDBViewer.java +++ b/src/MCview/PDBViewer.java @@ -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) { diff --git a/src/jalview/appletgui/EditNameDialog.java b/src/jalview/appletgui/EditNameDialog.java index 1c365ba..ca029c8 100644 --- a/src/jalview/appletgui/EditNameDialog.java +++ b/src/jalview/appletgui/EditNameDialog.java @@ -76,6 +76,6 @@ public class EditNameDialog extends JVDialog panel.add(panel2, BorderLayout.CENTER); } setMainPanel(panel); - show(); + setVisible(true); } } diff --git a/src/jalview/appletgui/FeatureRenderer.java b/src/jalview/appletgui/FeatureRenderer.java index 6ab6060..c90fb47 100755 --- a/src/jalview/appletgui/FeatureRenderer.java +++ b/src/jalview/appletgui/FeatureRenderer.java @@ -295,7 +295,7 @@ public class FeatureRenderer } }); - dialog.show(); + dialog.setVisible(true); jalview.io.FeaturesFile ffile = new jalview.io.FeaturesFile(); diff --git a/src/jalview/appletgui/UserDefinedColours.java b/src/jalview/appletgui/UserDefinedColours.java index 282e757..6e14146 100755 --- a/src/jalview/appletgui/UserDefinedColours.java +++ b/src/jalview/appletgui/UserDefinedColours.java @@ -89,7 +89,7 @@ public class UserDefinedColours originalLabel = "Feature Colour"; setForDialog("Select Feature Colour", alignframe); setTargetColour(fr.colourPanel.getBackground()); - dialog.show(); + dialog.setVisible(true); } public UserDefinedColours(Component caller, @@ -101,7 +101,7 @@ public class UserDefinedColours originalLabel = "Select Colour"; setForDialog("Select Colour", alignframe); setTargetColour(col1); - dialog.show(); + dialog.setVisible(true); } -- 1.7.10.2