利用JAVA SWING 编程,要在当前窗体中显示信息提示框,则需要编写的代码
A.
JOptionPane.showMessageDialog(null,"请输入登陆名!","提示信息",JOptionPane.CLOSED_OPTION) ;
B.
new JOptionPane.showMessageDialog(null,"请输入登陆名!","提示信息",JOptionPane.CLOSED_OPTION) ;
C.
new JOptionPane.messageDialog(null,"请输入登陆名!","提示信息",JOptionPane.CLOSED_OPTION) ;
D.
JOptionPane.messageDialog(null,"请输入登陆名!","提示信息",JOptionPane.CLOSED_OPTION) ;