
-----------------------------------
jamonathin
Sun Sep 16, 2007 4:31 pm

Dialogue Box
-----------------------------------
Hey all, 

I need to make a dialogue box of some sort.  The best way i can put it is i need to do something like this:

for (int i = 0; i < n; i++)
{
    for (int q = 0; q < n; n++)
    {
        printf ("%d ", number

Some of that syntax might be wrong, but thats basically what i need to accomplish, and i have no idea how to do that. My prof is keen on using "javax.swing.JOptionPane;" so i hope theres some sort of box thing for that.

and p.s. does the predef 'maxint' (or variation) exist in java?

-----------------------------------
Euphoracle
Sun Sep 16, 2007 7:12 pm

RE:Dialogue Box
-----------------------------------
Essentially:

// Import this
import javax.swing.JOptionPane;

// And to use the option pane
JOptionPane.showMessageDialog(null, "What you want the user to see goes here!" );

But instead of printf, use

JOptionPane.showMessageDialog(null, String.format( stuffhere ) );
