1.1 compatibility
[jalview.git] / src / jalview / appletgui / UserDefinedColours.java
index 5da1fbf..4f1ac38 100755 (executable)
@@ -104,7 +104,14 @@ public class UserDefinedColours extends Panel implements ActionListener,
   {
     this(caller, col1, alignframe, "Select Colour");
   }
-  public UserDefinedColours(Component caller, Color col1, Container alignframe, String title)
+  /**
+   * Makes a dialog to choose the colour
+   * @param caller - handles events
+   * @param col1 - original colour
+   * @param alignframe - the parent Frame for the dialog
+   * @param title - window title
+   */
+  public UserDefinedColours(Component caller, Color col1, Frame alignframe, String title)
   {
     this.caller = caller;
     originalColour = col1;
@@ -127,8 +134,8 @@ public class UserDefinedColours extends Panel implements ActionListener,
     okcancelPanel.setBounds(new Rectangle(0, 113, 400, 35));
     frame.setTitle("User Defined Colours - " + label);
     frame.setSize(420, 200);
-  }
-
+    }
+    
   void setForDialog(String title, Container alignframe)
   {
     init();
@@ -138,10 +145,11 @@ public class UserDefinedColours extends Panel implements ActionListener,
     {
       dialog = new Dialog((Frame)alignframe, title, true);
     }
-    else 
-    if (alignframe instanceof JVDialog){
-      dialog = new Dialog(((JVDialog)alignframe), title, true);
-    } else {
+    else {
+//    if (alignframe instanceof JVDialog){
+//      // not 1.1 compatible!
+//      dialog = new Dialog(((JVDialog)alignframe), title, true);
+//    } else {
       throw new Error("Unsupported owner for User Colour scheme dialog.");
     }