private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
int a=JoptionPane.showConfirmDialog(null,"Do you really want to close the application","Select",JOptionPane.YES_NO_OPTION);
if(a==0)
{
System.exit(0);
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
int a=JoptionPane.showConfirmDialog(null,"Do you really want to close the application","Select",JOptionPane.YES_NO_OPTION);
if(a==0)
{
System.exit(0);
}
1条答案
按热度按时间tp5buhyn1#
应该是:
java是区分大小写的,选项窗格的第一个“o”是大写的“o”。