开发者

Java popup loading

开发者 https://www.devze.com 2023-02-14 14:44 出处:网络
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:

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

精彩评论

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

关注公众号