File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JOptionPane or JFrame? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane or JFrame?" Watch "JOptionPane or JFrame?" New topic
Author

JOptionPane or JFrame?

b newton
Greenhorn

Joined: Feb 23, 2006
Posts: 7
I have a simple program in java that take some input from the user in a dialog box(JOptionPane) and I would like to output this information in another dialog. Would it be best to use JOptionPane or JFrame (with JLables) for output to the user.

So far I have been using JOptionPane but I can only get it to work with a single string and single string variable. What I would like to output is 3 strings, 2 ints and one string variable.

if someone can kind of point me in the right direction that would be greatly appreciated.

thanks,
b newton
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
if its just for display, JOptionPane should do it OK

simple demo

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Moving to Swing forum.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
b newton
Greenhorn

Joined: Feb 23, 2006
Posts: 7
Thank you Michael! That really helped clear up somethings for me!

Thanks,
bnewton
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JOptionPane or JFrame?