Article View: borland.public.jbuilder.java.swing
Article #8950Re: displaying messages like delphi's ShowMessage .
From: Joe Cunningham
Date: Wed, 14 Jun 2000 00:00
Date: Wed, 14 Jun 2000 00:00
24 lines
1338 bytes
1338 bytes
Don't know Delphi but here is something you could check out:
JOptionPane.showMessageDialog();
It has various constructors, most of which are quite useable as is. Check
out the API for the specifics
Here is an example that uses the (Component parentComponent, Object message,
String title, int messageType) constructor -
JOptionPane.showMessageDialog(this, "I don't know Delphi",
"Check the API", JOptionPane.WARNING_MESSAGE);
"Meni Meller" <meni@comprise.co.il> wrote in message
news:8i7lv3$msc3@bornews.borland.com...
> Hi,
>
> I need to know java's equivalent to Delphi's ShowMessage .
> (its a window that pops up and gives the user an OK button).
>
> Also, is there an equivalent to MessageDLG ?
>
> regards,
> Meni Meller.
>
>
Technical Details
Message-ID:
<3947c696@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8i7lv3$msc3@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6cec179e8d2a803 X-Google-Attributes: gid111d45,public From: "Joe Cunningham" <joseph_cunningham@yahoo.com> Subject: Re: displaying messages like delphi's ShowMessage . Date: 2000/06/14 Message-ID: <3947c696@dnews> X-Deja-AN: 634545822 References: <8i7lv3$msc3@bornews.borland.com> X-Trace: 14 Jun 2000 10:53:26 -0800, 209.31.227.106 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600