summaryrefslogtreecommitdiff
path: root/java/ImageProcessing
diff options
context:
space:
mode:
authorpjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-23 17:21:28 +0000
committerpjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-23 17:21:28 +0000
commit068ac9b671e19af2f91109253400392b5e2ced58 (patch)
tree1e873af2a21663e0ff61f0b0da8d789c39956bba /java/ImageProcessing
parent0d49ba31a890c8c7210efbababd76173ec19591a (diff)
downloadATCD-068ac9b671e19af2f91109253400392b5e2ced58.tar.gz
Added a new dialog type reporting errors for a function not supported
Diffstat (limited to 'java/ImageProcessing')
-rw-r--r--java/ImageProcessing/framework/DialogManager.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/java/ImageProcessing/framework/DialogManager.java b/java/ImageProcessing/framework/DialogManager.java
index 2a169675e0b..e712a994b4a 100644
--- a/java/ImageProcessing/framework/DialogManager.java
+++ b/java/ImageProcessing/framework/DialogManager.java
@@ -15,6 +15,7 @@ class DialogManager
frame = new AboutFrame ();
break;
case DialogType.MALFORMED_URL:
+ case DialogType.NOT_SUPPORTED:
case DialogType.URL_NOT_FOUND:
frame = new MessageFrame ("Error", message);
break;
@@ -25,11 +26,6 @@ class DialogManager
Dimension d = Toolkit.getDefaultToolkit ().getScreenSize ();
frame.move ((d.width - frame.size ().width)/2,
(d.height - frame.size ().height)/2);
- /* frame.reshape ((d.width - frame.size ().width)/2,
- (d.height - frame.size ().height)/2,
- frame.size ().width,
- frame.size ());
- */
frame.show ();
}
}
@@ -40,7 +36,7 @@ class MessageFrame extends Frame
{
super (title);
- this.resize (250,100);
+ this.resize (message.length () * 8, 100);
this.setLayout (new BorderLayout ());
this.text_ = new TextField (message);