{
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;
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();
{
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.");
}