Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Hey Guys Need Help Fast?

  Asked By: Sunil    Date: Feb 20    Category: Java    Views: 808
  

I keep getting this error....has something to do
with the "JOptionPane.showMessageDialog"....here is what the error
is saying:

C:\Documents and Settings\Micheal\My Documents\Data Files\School
Work\Java\Ch2ex2_27.java:37: cannot resolve symbol
symbol : method showMessageDialog (<*>,java.lang.String,int)
location: class javax.swing.JOptionPane
JOptionPane.showMessageDialog(
^

Any help as to what it means would be great..???but I have tried
everythign I can to fix the prob...it is written the way it is
suppose to..??prob just some stupid spellign mistake r
something..but if ya can help me..please do..?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Emma Brown     Answered On: Feb 20

try putting the following snippet in there and if it works, change the message.
make sure you have the import statement:

import javax.swing.*;


String message = "This is a test of the emergency broadcast system.");
JOptionPane.showMessageDialog(null,message);

 
Didn't find what you were looking for? Find more on Hey Guys Need Help Fast? Or get search suggestion and latest updates.




Tagged: