• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Networks

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure you aren't getting any compilation errors? because Import and Public aren't valid Java keywords.
reply
    Bookmark Topic Watch Topic
  • New Topic