JOptionPane 的确定,取消 可以修改成其他的文字么? 我希望把“确定”改成“上传”,把“取消”改成“重做”JOptionPane.showConfirmDialog(null,"确定上传?","数据上传",JOptionPane.OK_CANCEL_OPTION); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Object[] options = {"上传", "重做"};JOptionPane.showOptionDialog(arg0, "确定上传?", "数据上传", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); Object[] options = {"上传", "重做"}; JOptionPane.showOptionDialog(null, "确定上传?", "数据上传", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);刚才一参数忘改了…… http://www.java2s.com/CN/Tutorial/Java/0240__Swing/AddingComponentstotheButtonAreaUsingJOptionPanewithaJButtoncontainingatextlabelandanicon.htm Object[] options = {"上传", "重做"}; JOptionPane.showOptionDialog(null, "确定上传?", "数据上传", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]); 在MyEclipse中能运行,可是在cmd中却报错 救助!!!!!!!!!!!! 怎么用class.forName动态加载带参数的类? 在MyEclipse中如何看库函数的源代码? Eclipse3.3和JBuilder2007没有应用程序开发吗? UDP 重新传输的的问题 Cannot forward after response has been 问题 请问SQL sever里的JDBC驱动在哪里? 关于addKeyListener 请问怎样把null转换成String类型,具体见内 数组问题,求教 打成jar包的程序怎么显示控制台
JOptionPane.showOptionDialog(arg0,
"确定上传?",
"数据上传",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[0]);
JOptionPane.showOptionDialog(null,
"确定上传?",
"数据上传",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[0]);刚才一参数忘改了……
JOptionPane.showOptionDialog(null,
"确定上传?",
"数据上传",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[0]);