我不确定如何在我的方法中编写弹出消息框的代码。 public String verify(){ String result = "failed"; int authcode = staffBean.getVerifyCodeByName(getLoginUserName()); if (code == authcode){ result ="success"; } else{ //statement to popup an error message box } return result; } 我试图JOptionPane在我的方法中使用它,但是它不起作用: String st = "Welcome"; JOptionPane.showMessageDialog(null, st);
我正在运行Ubuntu 12.10,并且尝试安装Netbeans 7.1(或更高版本),但我没有.sh文件,但无法安装,错误出现在这里: [2013-06-27 19:11:28.918]: at org.netbeans.installer.Installer.main(Installer.java:81) [2013-06-27 19:11:28.918]: An error occured while initializing the NetBeans IDE installer UI. [2013-06-27 19:11:28.918]: Most probably the running JVM is not compatible with the current platform. [2013-06-27 19:11:28.919]: See FAQ at http://wiki.netbeans.org/FaqUnableToPrepareBundledJdk for more information. [2013-06-27 19:11:28.919]: /usr/local/java/jre1.7.0_25/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object …