static void showMessageDialog(String message,String title,int messageType){
  JOptionPane pane=new JOptionPane(new SelectableLabel(message),messageType);
  JDialog dialog=pane.createDialog(title);
  dialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
  setLocation(dialog);
  dialog.setVisible(true);
  dialog.dispose();
}

static void showMessageDialog ( String message , String title , int messageType ) { JOptionPane pane = new JOptionPane ( new SelectableLabel ( message ) , messageType ) ; JDialog dialog = pane . createDialog ( title ) ; dialog . setDefaultCloseOperation ( JDialog . HIDE_ON_CLOSE ) ; setLocation ( dialog ) ; dialog . setVisible ( true ) ; dialog . dispose ( ) ; }
show a message dialog with specified , selectable message .
