Quick Java Problem

Reply

Join Date: Nov 2008
Posts: 1
Reputation: Soloz is an unknown quantity at this point 
Solved Threads: 0
Soloz Soloz is offline Offline
Newbie Poster

Quick Java Problem

 
0
  #1
Nov 20th, 2008
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
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 94
Reputation: destin is an unknown quantity at this point 
Solved Threads: 10
destin's Avatar
destin destin is offline Offline
Junior Poster in Training

Re: Quick Java Problem

 
0
  #2
Nov 20th, 2008
Your post did not get formatted correctly. Please edit it to use code tags.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Quick Java Problem

 
0
  #3
Nov 21st, 2008
there is no error in the declaration of that array
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC