Show an error dialog that displays the message, 'alert':

JOptionPane.showMessageDialog(null, "alert", "alert", JOptionPane.ERROR_MESSAGE);

 

Show an internal information dialog with the message, 'information':
JOptionPane.showInternalMessageDialog(frame, "information","information", JOptionPane.INFORMATION_MESSAGE);

 

Show an information panel with the options yes/no and message 'choose one':
JOptionPane.showConfirmDialog(null,"choose one", "choose one", JOptionPane.YES_NO_OPTION);

 

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2021-07-07
  • 2021-05-20
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-21
  • 2021-08-12
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-10-24
相关资源
相似解决方案