|
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
|