View Single Post
  #1 (permalink)  
Old 11-02-2007, 12:14 PM
jhetfield18 jhetfield18 is offline
Member
 
Join Date: Oct 2007
Posts: 9
jhetfield18 is on a distinguished road
About JOptionPane.showMessageDialog
Hi I was wondering if I could use a for(){} in a JOptionPane.showMessageDialog.To explain,let's say I have an array A,full of integers,and have done two different equations using the numbers from A and stored the the results in two arrays B,C one for each equation.Can I use one message box to print all the results in a form like this:
Number: ......
Result for equation no.1: ......
Result for equation no.2: ......

So it becomes like this in the message box:


Number: ......
Result for equation no.1: ......
Result for equation no.2: ......


Number: ......
Result for equation no.1: ......
Result for equation no.2: ......


Number: ......
Result for equation no.1: ......
Result for equation no.2: ......


Number: ......
Result for equation no.1: ......
Result for equation no.2: ......

..................................


Can I do this????Is there any way?Perhaps another message dialog command from another library that supports many results?

Regards,Nick
Reply With Quote
Sponsored Links