• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JOptionPane or JFrame?

 
b newton
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if its just for display, JOptionPane should do it OK

simple demo

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing forum.
 
b newton
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Michael! That really helped clear up somethings for me!

Thanks,
bnewton
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic