| | |
Quick Java Problem
![]() |
•
•
Join Date: Nov 2008
Posts: 1
Reputation:
Solved Threads: 0
Ok so.. I've been trying to customize a dialog box.. I'm pretty new to this.. So this might be a stupid question.. But anyways...
Code:
![Object [] options = {"Course I do!",<br />
"Not Really"};<br />
int n = JOptionPane.showOptionDialog (frame,<br />
"Do you Understand?",<br />
"Easy Question",<br />
JOptionPane.YES_NO_OPTION,<br />
JOptionPane.INFORMATION_MESSAGE,<br />
null, //do not use a custom Icon<br />
options, //the titles of buttons<br />
options [0]); //default button title](/cgi-bin/mimetex.cgi?Object [] options = {"Course I do!",<br />
"Not Really"};<br />
int n = JOptionPane.showOptionDialog (frame,<br />
"Do you Understand?",<br />
"Easy Question",<br />
JOptionPane.YES_NO_OPTION,<br />
JOptionPane.INFORMATION_MESSAGE,<br />
null, //do not use a custom Icon<br />
options, //the titles of buttons<br />
options [0]); //default button title)
3 errors that cam up were "misplaced construct(s)" and Unexpected symbols ignored...
Both errors are in this part : Object [] options =
I don't know what to do.. Please help me out.
Thanks
-Soloz
Code:
3 errors that cam up were "misplaced construct(s)" and Unexpected symbols ignored...
Both errors are in this part : Object [] options =
I don't know what to do.. Please help me out.
Thanks
-Soloz
![]() |
Similar Threads
- Help Me To Change! (Quick Reply Needed) (Java)
- Which Java IDE Software is good? (Java)
- my HJT log, need help pls (Viruses, Spyware and other Nasties)
- Got the dreaded about:blannk problem again (Viruses, Spyware and other Nasties)
- "C:\system32\bridge.dll module cannot be located" problem (Viruses, Spyware and other Nasties)
- Java Applet viewer blinks everytime the init method is used. (Java)
- Another problem with BRIDGE.DLL (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: Plugins
- Next Thread: How to make an array in text file (help..)
| Thread Tools | Search this Thread |
actuate add android api applet application applications array arrays automation balls bank binary bluetooth business chat class clear client code codesnippet collections component database defaultmethod development dice digit dragging ebook eclipse equation error event formatingtextintooltipjava fractal functiontesting game givemetehcodez graphics gui health hql html hyper ide idea image infinite int integer invokingapacheantprogrammatically j2me java javame javaprojects jni jpanel julia linux list main map method methods mobile myregfun mysql netbeans nonstatic openjavafx parameter pearl php problem program project recursion repositories scanner scrollbar server set sms sort sorting spamblocker sql sqlserver state storm string sun superclass swing swt thread threads tree windows





