void activateConnectionDialog(){
  if (JOptionPane.showOptionDialog(tableAggregate,connectionPanel,ConnectTitle,JOptionPane.DEFAULT_OPTION,JOptionPane.INFORMATION_MESSAGE,null,ConnectOptionNames,ConnectOptionNames[0]) == 0) {
    connect();
    frame.setVisible(true);
  }
 else   if (!frame.isVisible()) {
    System.exit(0);
  }
}

void activateConnectionDialog ( ) { if ( JOptionPane . showOptionDialog ( tableAggregate , connectionPanel , ConnectTitle , JOptionPane . DEFAULT_OPTION , JOptionPane . INFORMATION_MESSAGE , null , ConnectOptionNames , ConnectOptionNames [ 0 ] ) == 0 ) { connect ( ) ; frame . setVisible ( true ) ; } else if ( ! frame . isVisible ( ) ) { System . exit ( 0 ) ; } }
brigs up a jdialog using joptionpane containing the connectionpanel . if the user clicks on the ' connect ' button the connection is reset .
