Thread: Snytax error
View Single Post
Old Apr 30th, 2008, 11:27 AM   #21
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 169
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Snytax error

Java Syntax (Toggle Plain Text)
  1. String choose= JOptionPane.showInputDialog(menu + Option1 + Option2+ Option3+ Option4+Option5);

You forget to specify the parent component.

Java Syntax (Toggle Plain Text)
  1. String choose= JOptionPane.showInputDialog(ParentComponent, menu + Option1 + Option2+ Option3+ Option4+Option5);

You were tryiny to say that menu + option1...... was the name of the parent and then not specify a message.

Cheers,
Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote