Thread: Snytax error
View Single Post
Old Apr 30th, 2008, 1:06 PM   #23
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

it just gives the dialog box a parent nothing much to it. It also provides the Co-ords that the dialog box uses. You do not need to specify a parent frame as you can just set it equal to null. This will then use a default frame and the dialog box will be centred

 String choose= JOptionPane.showInputDialog(null, menu + Option1 + Option2+ Option3+ Option4+Option5);
Should work fine for you.

This page covers these things, Java Doc - JOptionPane.showInputDialog

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