
-----------------------------------
AHHNOOB
Tue May 04, 2004 5:41 pm

question about multi windows
-----------------------------------
in java u start out wit 

import java.applet.*;
import java.awt.*;

is there a command that will allow me to have more then one window 
for explain in my game i want first window for the person to enter their name in then the second window would open up displaying the name

how would i do that???

-----------------------------------
Paul
Tue May 04, 2004 6:41 pm


-----------------------------------

import javax.swing.JOptionPane; //import class JOptionPane

public class name{
public static void main ( String args[] )
{
String name;
//read in name
name = 
	JOptionPane.showInputDialog ( "Enter your name" );

//display name
JOptionPane.showMessageDialog (
null, "Your name is " + name, "Name",
JOptionPane.PLAIN_MESSAGE);
System.exit ( 0 ); //terminate the program
}
}


-----------------------------------
AHHNOOB
Wed May 05, 2004 3:25 pm


-----------------------------------
hey thnx for your help
