Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Java error "cannot find symbol variable frame" while using in showMessageDialog

  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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...


    public class asdasdasd {
    	public static void main (String[] args){
     
    JOptionPane.showMessageDialog(frame,"who is the cutest?");
    	}
    }


    error msg.: cannot find symbol variable frame
    Last edited by Freaky Chris; September 18th, 2009 at 03:15 PM.


  2. #2
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: cannot find symbol variable frame

    change "frame" to null.

    Chris

  3. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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 ?

  4. #4
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default 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

  5. #5
    Junior Member
    Join Date
    Sep 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: cannot find symbol variable frame

    ahh...ok tnx...
    btw..i forgot.
    what does frame and null do?

  6. #6
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default 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.

Similar Threads

  1. The Frame to be Center Position
    By r12ki in forum AWT / Java Swing
    Replies: 3
    Last Post: October 1st, 2009, 10:36 AM
  2. [SOLVED] find the position of the field separator in the String---need help ASAP
    By rajesh.mv in forum Java Theory & Questions
    Replies: 6
    Last Post: August 17th, 2009, 10:33 AM
  3. [SOLVED] Fixing of bug for a small program
    By Koren3 in forum Threads
    Replies: 3
    Last Post: April 21st, 2009, 06:28 AM
  4. How to do thread communication in java
    By Koren3 in forum Threads
    Replies: 4
    Last Post: March 29th, 2009, 10:49 AM
  5. [SOLVED] How to a set java class path?
    By captjade in forum Java Theory & Questions
    Replies: 1
    Last Post: March 10th, 2009, 06:40 AM