开发者

Java popup loading

Does anybody have Java popup loading dialog ? Or can anybody tell me h开发者_JAVA百科ow to program this ?


I assume you need a plain MessageDialog with an "i" for information icon:

JOptionPane.showMessageDialog(frame, "This is the message...", "Title");

frame is the top level container you want to bind this dialog to modally. You can use null if you want, then it will show up accordingly to the window system.

You can add a fourth argument: JOptionPane.WARNING_MESSAGE, JOptionPane.ERROR_MESSAGE, JOptionPane.PLAIN_MESSAGE or JOptionPane.INFORMATION_MESSAGE the latter goes with a fifth argument for your own Icon.

Java tutorial here.


http://download.oracle.com/javase/tutorial/uiswing/components/progress.html


Also have a look at How to make dialogs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜