| | |
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 |
911 actionlistener addball addressbook android api applet application array automation binary block bluetooth button character class client code compile component consumer css csv database desktop developmenthelp eclipse ee error fractal ftp game gameprogramming givemetehcodez graphics gui html ide image j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia jvm lego linked linux loan mac map method mobile netbeans notdisplaying number objects online oriented phone printf problem program programming project projects recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server service set singleton sms software sort sql swing system test textfields threads time title tree tutorial-sample ubuntu update windows





