![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Hobbyist Programmer
|
Re: Snytax error
Java Syntax (Toggle Plain Text)
You forget to specify the parent component. Java Syntax (Toggle Plain Text)
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: ')
|
|
|
|
|
|
#22 |
|
Programmer
Join Date: Mar 2008
Posts: 34
Rep Power: 0
![]() |
Re: Snytax error
i didn't know about parent component... what is it by the way?? can you explain it to me
![]() |
|
|
|
|
|
#23 |
|
Hobbyist Programmer
|
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); This page covers these things, Java Doc - JOptionPane.showInputDialog Chris
__________________
Who said i couldn't program sarcasm = raw_input('Type in a sarcastic remark: ')
|
|
|
|
|
|
#24 |
|
Programmer
Join Date: Mar 2008
Posts: 34
Rep Power: 0
![]() |
Re: Snytax error
thank you...
![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Socket Programming Error in Linux.. Pls help | boraciner | C++ | 18 | Sep 12th, 2007 1:17 AM |
| C# corruption!!! | Kilo | C++ | 32 | May 21st, 2006 8:44 PM |
| Masm | rsnd | Assembly | 4 | May 20th, 2006 9:05 PM |
| libraries | matko | C | 1 | Jan 22nd, 2006 2:12 PM |
| String error in if statement | Blighttdm | C | 12 | Nov 18th, 2005 6:34 PM |