• Post Reply Bookmark Topic Watch Topic
  • New Topic

Networks  RSS feed

 
Tanya Fila
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help on this:

The client is prompted to enter a name with which to connect to the server. After which the main GUI is loaded.
I just did the following on on netbeans

Import javax.swing.JOptionPane;
Public class NameDialog
{
Public static void main(String[] args)
{
String name;
name = JOptionPane.showInputDialog(“Please enter your name”);
System.exit(0);

here i can crete this panel but i can't make it load. Actually Um coding the "Draw my thing game"
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you aren't getting any compilation errors? because Import and Public aren't valid Java keywords.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!