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 3 of 3

Thread: Cannot be resolved into a variable

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cannot be resolved into a variable

    error.PNG error 2.PNG How do I fix this? Should note I am incredibly new to java.


  2. #2
    Junior Member
    Join Date
    Jan 2014
    Posts
    23
    My Mood
    Mellow
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Cannot be resolved into a variable

    Quote Originally Posted by averygrizzlybear View Post
    error.PNG error 2.PNG How do I fix this? Should note I am incredibly new to java.
    you need to create object of Button....

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Cannot be resolved into a variable

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for newcomers, including a few "house rules" that you'd try to follow when visiting someplace new.

    Please cut and paste code you need help with directly into a post, the same with errors.

    Moved to Android.

Similar Threads

  1. StdDraw Cannot be Resolved??
    By jbarcus81 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: June 28th, 2014, 05:47 PM
  2. draw can't be resolved. Help!
    By Jullix993 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 16th, 2013, 07:41 AM
  3. A method not being resolved?
    By inflames098 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 24th, 2012, 02:30 AM
  4. mp3 file cant be resolved
    By aNGaJe in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 2nd, 2012, 07:20 AM
  5. cannot be resolved to a type
    By Teraphim in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 16th, 2010, 10:42 AM