public void displayMessage(String title,String message){
  if (Environment.getBoolean(Environment.UseInternalFrames)) {
    JOptionPane.showInternalMessageDialog(Environment.getInternalFrameDesktop(),message,title,JOptionPane.INFORMATION_MESSAGE);
  }
 else {
    JOptionPane.showMessageDialog(null,message,title,JOptionPane.INFORMATION_MESSAGE);
  }
}

public void displayMessage ( String title , String message ) { if ( Environment . getBoolean ( Environment . UseInternalFrames ) ) { JOptionPane . showInternalMessageDialog ( Environment . getInternalFrameDesktop ( ) , message , title , JOptionPane . INFORMATION_MESSAGE ) ; } else { JOptionPane . showMessageDialog ( null , message , title , JOptionPane . INFORMATION_MESSAGE ) ; } }
display a message in a pop - up window .
