I'm migrating an application from Microsoft Java to Linux. Windoz
provides a convenient MessageBox() method to alert the user. What's the
Sun Java equivalent?
Thanks
Paul
David Postill - 26 Dec 2003 01:01 GMT
| I'm migrating an application from Microsoft Java to Linux. Windoz
| provides a convenient MessageBox() method to alert the user. What's the
| Sun Java equivalent?
<http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html#showMessage
Dialog(java.awt.Component,%20java.lang.Object,%20java.lang.String,%20int)>
<davidp />

Signature
David Postill
Herman Timmermans - 26 Dec 2003 05:56 GMT
> I'm migrating an application from Microsoft Java to Linux. Windoz
> provides a convenient MessageBox() method to alert the user. What's the
> Sun Java equivalent?
>
> Thanks
> Paul
***************************************************************
To create simple standard diaglog, you use the JOptionPane class. Using
this, you can create and customize several kinds of dialogs. The class
supports the layout for standard dialogs, providing icons, specifying the
titcle and text, and allows for customizing the button's text. b The
showMessageDialog for example, displays a modal dialog with one button, and
you can specify the message, the icon and title the the dialog displays.
Hope this helps,
Brgds Herman

Signature
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Paul Thompson - 28 Dec 2003 20:45 GMT
> I'm migrating an application from Microsoft Java to Linux. Windoz
> provides a convenient MessageBox() method to alert the user. What's the
> Sun Java equivalent?
>
> Thanks
> Paul
Thanks for the good answers ....