|
-
July 19th, 2001, 09:50 AM
#1
Simple Message Box -- Do I have to create a new class?
Hi --
I have a Java app that shows a print dialog box so that the user can change the printer settings. Right before this pops up, I need to put a message box that reminds the user of what settings they need to use. Is there a simple way to do this (like the alert() in javascript)... or will I have to create a new class & create the message box myself?
I'd appreciate any advice -- thanks!
-
July 19th, 2001, 09:58 AM
#2
Re: Simple Message Box -- Do I have to create a new class?
You should probably go ahead and write the class you need. It is something that you'll want to reuse in future programs, so make it general purpose and you'll thank yourself in the future.
Norm
Norm
-
July 19th, 2001, 11:18 AM
#3
Re: Simple Message Box -- Do I have to create a new class?
Checkout JOptionPane.showMessageDialog()
-
July 19th, 2001, 12:08 PM
#4
Re: Simple Message Box -- Do I have to create a new class?
Thanks -- it looks like the JOptionPane.showMessageDialog() is what I need because this just needs to be a short little message with an OK button.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|