@Override
    public void actionPerformed(ActionEvent ae) {
        Object trigger = ae.getSource();
        if(trigger == OK) {
            url = urlTf.getText();
            un = unTf.getText();
            pw = passTf.getText();
            checkHealth();
        } else if ( trigger == CLOSE) {
            cleanup();
        } else if( trigger == EXPORT) {
            url = urlTf.getText();
            un = unTf.getText();
            pw = passTf.getText();
            final JOptionPane exportConfirm = new JOptionPane("DANGER! \n " +
                    "This will OVERWRITE current schema file", 
                    JOptionPane.QUESTION_MESSAGE,
                    JOptionPane.YES_NO_OPTION);
            final JDialog dialog = new JDialog(checkFrame, "Export Schema", true);
            dialog.setContentPane(exportConfirm);
            dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
            exportConfirm.addPropertyChangeListener(
                    new PropertyChangeListener() {
                        public void propertyChange(PropertyChangeEvent e) {
                            String prop = e.getPropertyName();
                            if ( dialog.isVisible()
                                && (e.getSource() == exportConfirm)
                                && (prop.equals(JOptionPane.VALUE_PROPERTY))) {
                                dialog.setVisible(false);
                            }
                        }
                    });
            dialog.pack();
            dialog.setVisible(true);
            int value = ((Integer)exportConfirm.getValue()).intValue();
            if ( value == JOptionPane.YES_OPTION ) {
                Object data1[][] = readSchema();
                if(data1 != null) {
                    exportSchema(data1);
                } else {
                    JOptionPane.showMessageDialog(null, "No data to export aborting", 
                            "DATA ERROR", JOptionPane.ERROR_MESSAGE);
                }
            }
        }
            
    }