这java段代码老提示找不到符号,高手帮我看看
importjavax.swing.*;publicclassStandardDialog{publicstaticvoidmain(Stringargs[]){JOpt...
import javax.swing.*;
public class StandardDialog{
public static void main(String args[]){
JOptionPane.showMessageDialog(null,"同桌的你!");
JOptionPane.showConfirmDialog(null,"你在他乡还好吗?");
JOptionpane.showInputDialog(null,"你在他乡还好吗?");
String[]s={"好","不好"};
JOptionPane.showInputDialog(null,"你在他乡还好吗?","输入",JOptionPane.QUESTION_MESSAGE,null,s,s[0]);
}
} 展开
public class StandardDialog{
public static void main(String args[]){
JOptionPane.showMessageDialog(null,"同桌的你!");
JOptionPane.showConfirmDialog(null,"你在他乡还好吗?");
JOptionpane.showInputDialog(null,"你在他乡还好吗?");
String[]s={"好","不好"};
JOptionPane.showInputDialog(null,"你在他乡还好吗?","输入",JOptionPane.QUESTION_MESSAGE,null,s,s[0]);
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询