Dialogue Box
Author |
Message |
jamonathin
![](http://compsci.ca/v3/uploads/user_avatars/57683465145f851a43dd9a.gif)
|
Posted: Sun Sep 16, 2007 4:31 pm Post subject: 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:
c: |
for (int i = 0; i < n; i++ )
{
for (int q = 0; q < n; n++ )
{
printf ("%d ", number [i ][q ]);
}
printf ("\n");
} |
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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Euphoracle
![](http://compsci.ca/v3/uploads/user_avatars/11170373664bf5f25f636f1.png)
|
Posted: Sun Sep 16, 2007 7:12 pm Post subject: RE:Dialogue Box |
|
|
Essentially:
Java: | // 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
|
|
|
|
|
![](images/spacer.gif) |
|
|