Java error "cannot find symbol variable frame" while using in showMessageDialog
hello guys im a random college guy who goes to school for granted,,..
pls help me here
here's my code...
Code :
public class asdasdasd {
public static void main (String[] args){
JOptionPane.showMessageDialog(frame,"who is the cutest?");
}
}
error msg.: cannot find symbol variable frame
:confused:
Re: cannot find symbol variable frame
change "frame" to null.
Chris
Re: cannot find symbol variable frame
hey freaky chris....
you're not a freak at all....
if anyone calls you freak..tell me..ill kick their buts for you...
tnx alot
forum admin:
close thread ?
Re: cannot find symbol variable frame
We don't close threads. We just request that you mark the thread as solved :)
If you are not sure how try this http://www.javaprogrammingforums.com...-new-post.html
Glad I could help.
Best Regards,
Chris
Re: cannot find symbol variable frame
ahh...ok tnx...
btw..i forgot.
what does frame and null do?
Re: cannot find symbol variable frame
that parameter specifies the objects parent, normally some form of frame. Or it has no parents, so it is null.