Examples of showMessageDialog()


Examples of javax.swing.JOptionPane.showMessageDialog()

  public void showError(String msg)
  {  JOptionPane dialog = new JOptionPane();
    JTextArea area = new JTextArea(msg);
    JScrollPane jsp = new JScrollPane(area);
    jsp.setPreferredSize(new Dimension(500,200));
    dialog.showMessageDialog(this,jsp,"Error",JOptionPane.ERROR_MESSAGE);
   
  }
 
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.