Topic: 求applet程序中怎样生成对话框.

  Print this page

1.求applet程序中怎样生成对话框. Copy to clipboard
Posted by: jjl0604
Posted on: 2005-10-08 09:35

将applet程序插入到网页中,程序运行时,输入一些参数,如果参数输入错误,出现异常,要求显示一个警告对话框,这个对话框程序怎么写,谢了!

2.Re:求applet程序中怎样生成对话框. [Re: jjl0604] Copy to clipboard
Posted by: wijh
Posted on: 2005-10-08 14:28

只是简单的提示就调用JOptionPane.showMessageDialog就OK了吧。

3.Re:求applet程序中怎样生成对话框. [Re: jjl0604] Copy to clipboard
Posted by: jjl0604
Posted on: 2005-10-08 15:29

能不能再详细说明一下.

4.Re:求applet程序中怎样生成对话框. [Re: jjl0604] Copy to clipboard
Posted by: q_yuan
Posted on: 2005-10-11 20:31

比如:
JOptionPane.showMessageDialog(null,"已经到达了最后一条记录了,不能再找下一条了!","警告",JOptionPane.OK_OPTION);

5.Re:求applet程序中怎样生成对话框. [Re: jjl0604] Copy to clipboard
Posted by: why
Posted on: 2005-10-11 20:43

jjl0604 wrote:
能不能再详细说明一下.

If you want more, check the API doc:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html

or search on Google or your favorite search engine for examples.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923