<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * 
 * You can add code anywhere in this file - except in the areas that are
 * written by the editor. You should not change the relative ordering of
 * the code.
 * 
 * You can remove this comment block or replace it with another.
 * 
 * @see        
 * @version    
 * @author    
 */

import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.io.*;
import java.net.*;
import java.util.*;
import com.supercede.forms.*;

public class ErrorScreen extends SuperCedeDialog implements Serializable
{

    void errorScreenPreInit()
    {
        // You can add code anywhere in this method.
        // This method is called PRIOR to form initialization.
        // NOTE: The form has NOT been initialized yet. Do not modify the form itself in this method.
    }

    void errorScreenPostInit()
    {
        // You can add code anywhere in this method.
        // This method is called AFTER form initialization.
        setLocation (180,180);
    }

    public boolean errorScreenWindowClosing(WindowEvent arg0)
    {
        // Put event handler code here. Return false for normal processing, true to override

        return false;
    }

    public boolean errorScreenWindowClosed(WindowEvent arg0)
    {
        // Put event handler code here. Return false for normal processing, true to override

        return false;
    }

    public void buttonOKActionPerformed(ActionEvent arg0)
    {
        // Get rid of this error screen
        SuperCedeWindowClosing (null);
    }
    
    public void addError (String msg) {
        // Add a message to the new error screen
        String already = textAreaError.getText ();
        textAreaError.setText (already + "\n" + msg);
    }

    // SuperCede Begin 2.0 Form Members
    // Do not remove the Begin and End markers.
    // The editor will rewrite the contents of this section each time the form is saved.

    // References to Beans within the Form.

    Label label1;
    com.supercede.beans.stdawt.TextAreaSB textAreaError;
    Button buttonOK;

    private void SuperCedeConstructor() throws IOException, ClassNotFoundException, ClassCastException, SuperCedeInvalidStateException
    {
        // Construct the actual connectors to give to our base class.

        Vector connectors = new Vector(3);
        connectors.addElement(new ErrorScreenWindowClosingConnector0(this));
        connectors.addElement(new ErrorScreenWindowClosedConnector1(this));
        connectors.addElement(new ErrorScreenEventConnector2(this));

        super.initializeThis(connectors);

        // Make references to Beans within the Form.

        int i = 0;

        label1 = (Label) getComponent(i++);
        textAreaError = (com.supercede.beans.stdawt.TextAreaSB) getComponent(i++);
        buttonOK = (Button) getComponent(i++);
    }

    public ErrorScreen(Frame parent) throws IOException, ClassNotFoundException, ClassCastException, SuperCedeInvalidStateException
    {
        super(parent);

        errorScreenPreInit();
        SuperCedeConstructor();
        errorScreenPostInit();
    }

    public void SuperCedeWindowClosing(WindowEvent arg0)
    {
        if (errorScreenWindowClosing(arg0) == false)
        {
            dispose();
        }
    }

    public void SuperCedeWindowClosed(WindowEvent arg0)
    {
        errorScreenWindowClosed(arg0);
    }

    // SuperCede End 2.0 Form Members
}

// SuperCede Begin 2.0 Form Connectors
// Do not remove the Begin and End markers.
// The editor will rewrite the contents of this section each time the form is saved.
// Connections for ErrorScreen:
//    ErrorScreenWindowClosingConnector0: from ErrorScreen.windowClosing to ErrorScreen.SuperCedeWindowClosing
//    ErrorScreenWindowClosedConnector1: from ErrorScreen.windowClosed to ErrorScreen.SuperCedeWindowClosed
//    ErrorScreenEventConnector2: from buttonOK.actionPerformed to ErrorScreen.buttonOKActionPerformed

final class ErrorScreenWindowClosingConnector0 extends WindowAdapter implements SuperCedeConnector, Serializable
{
    private ErrorScreen target;

    public ErrorScreenWindowClosingConnector0(ErrorScreen target)
    {
        this.target = target;
    }

    public void windowClosing(WindowEvent arg0)
    {
        target.SuperCedeWindowClosing(arg0);
    }
}

final class ErrorScreenWindowClosedConnector1 extends WindowAdapter implements SuperCedeConnector, Serializable
{
    private ErrorScreen target;

    public ErrorScreenWindowClosedConnector1(ErrorScreen target)
    {
        this.target = target;
    }

    public void windowClosed(WindowEvent arg0)
    {
        target.SuperCedeWindowClosed(arg0);
    }
}

final class ErrorScreenEventConnector2 implements SuperCedeConnector, Serializable, java.awt.event.ActionListener
{
    private ErrorScreen target;

    public ErrorScreenEventConnector2(ErrorScreen target)
    {
        this.target = target;
    }

    public void actionPerformed(ActionEvent arg0)
    {
        target.buttonOKActionPerformed(arg0);
    }
}

// The following line must be the last line in the file.
// SuperCede End 2.0 Form Connectors
</pre></body></html>