Results 1 to 4 of 4

Thread: Stupid error

  1. #1
    dewitrydan is offline Member
    Join Date
    Aug 2010
    Posts
    67
    Rep Power
    0

    Default Stupid error

    Hey there
    I am a complete beginner
    The following code keeps giving me the error message:
    "cannot find symbol
    symbol class Graphics
    location class Bucky"
    Java Code:
    import java.util.*;
    import javax.swing.*;
    
    
    public class Bucky extends JApplet{
        
        public void paint(Graphics g){
            
        }
    }
    Can you tell me where I am going wrong?
    thanks

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,407
    Rep Power
    25

    Default

    Please copy and paste the full text of the error message here. Don't type it from memory.

    What package is the Graphics class in? Did you import it?

  3. #3
    Prajin's Avatar
    Prajin is offline Senior Member
    Join Date
    Jun 2010
    Location
    Ktm, Nepal
    Posts
    120
    Rep Power
    0

    Default

    Hey,
    Where is your all import file? Include this file.
    import java.awt.Graphics;

    -Regards

  4. #4
    dewitrydan is offline Member
    Join Date
    Aug 2010
    Posts
    67
    Rep Power
    0

    Default

    Quote Originally Posted by Prajin View Post
    Hey,
    Where is your all import file? Include this file.
    import java.awt.Graphics;

    -Regards
    Thanks allot.
    noob error :P

Similar Threads

  1. incredibally stupid....
    By tek0011 in forum New To Java
    Replies: 7
    Last Post: 11-26-2009, 09:35 AM
  2. simple question feel stupid asking...
    By IYIaster in forum New To Java
    Replies: 3
    Last Post: 10-02-2009, 05:04 PM
  3. Singleton considered stupid, Java and complexity
    By fishtoprecords in forum Forum Lobby
    Replies: 11
    Last Post: 07-06-2008, 03:38 AM
  4. a really stupid question
    By SwinGirl in forum NetBeans
    Replies: 10
    Last Post: 06-25-2008, 09:06 PM
  5. Quick Stupid Question
    By bluekswing in forum New To Java
    Replies: 7
    Last Post: 01-08-2008, 06:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •