我想在java中显示消息对话框。此时我只能通过使用System.out.println()
方法显示在控制台的消息如何在java中显示消息对话框
实施例:
public class demo{
public static void main(String[] x){
// i want to display the below message in a dialog box
System.out.print("java is fun");
}
}
'JOptionPane.showMessageDialog(null,“hi”);' –
谢谢Pavneet,我的工作 –
[Popup Message boxes]可能重复(http://stackoverflow.com/questions/7080205/popup-message-boxes) –