Search:

Type: Posts; User: soradogoof

Search: Search took 0.19 seconds.

  1. Replies
    2
    Views
    2,322

    Re: keyListener not working

    Nevermind. I just realized I forgot to include the setFocusable(true) command in the constructor. Sorry I didn't notice before.
  2. Replies
    2
    Views
    2,322

    Re: keyListener not working

    also here is the icon if anyone wants to run the program for themselves:
    http://3.bp.blogspot.com/_R-wUtcHKmFA/Sap1vvvc-xI/AAAAAAAAAOc/7jKyM9uMlHI/S45/goku%2Bgif.gif
  3. Replies
    2
    Views
    2,322

    keyListener not working

    Just for fun I am trying to make my own version of the old game Crazy Taxi. I am only to the point of having the character however. I am at the stage of trying to make sure the character (goku icon)...
  4. Replies
    6
    Views
    1,992

    Re: NullPointerException problem

    Okay, I changed the
    pa.fillOval(100,100,50,50); to just repaint(). This got rid of my NullPointException error but now, the initial circle is drawn and nothing else happens.
    This is what my code...
  5. Replies
    6
    Views
    1,992

    Re: NullPointerException problem

    The exception occurs here:


    public void run()
    {
    pa.fillOval(200,200,50,50);
    }

    I made Graphics pa object static to get rid of an "unable to reference a nonstatic...
  6. Replies
    6
    Views
    1,992

    NullPointerException problem

    I just recently learned how to incorporate time into my programs. Specifically using the Timer and TimerTask classes to make a specific action occur after a certain amount of times, and repeat every...
  7. Replies
    2
    Views
    930

    Hello everyone!

    Hi. I am still a beginner at programming but am doing very well with it so far. I've taken a semester and a half of java in college and am currently teaching myself python on my own. Due to personal...
  8. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    now how do i denote this post as solved?
  9. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Anddd solved! Thank you very much!
  10. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    i took away the definition inside the constructor and that got it going. Now I'm getting and exception found error
    Here is my new output:

    ----jGRASP exec: java MatrixFileTester

    reading from...
  11. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    It is defined in the beginning of the program and inside the constructor. That's all.
  12. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Idk what happened to abunch of the posts but numRows is not altered after it gets set to 9 in the constructor. Accessed alot, but not altered. ?????
  13. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Never again altered*
  14. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    It is declared at the beginning of the class, set to 0 at the beginning of the constructor, and then set to 9 after the constructor reads the input file. After that, it is accessed multiple times but...
  15. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Ah. There's the problem. In the method numRows is equal to 0. But it gets set to 9 in the constructor. Why does it reset?
  16. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    I still can't find the problem. The only variable I missed that that method used was the array matrix[][] . Which I have added a print statement for and I have the same issue. It is equal to 0 before...
  17. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Here's my updated matrix class: (i only updated the detectErrors method, i will take correcting the methods one method at a time for easier thought-process. although hopefully whatever is the issue...
  18. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Not working at all*
  19. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    I have added println statements to the detectErrors method and discovered hat for some reason, the for loop is not being entered. I am posting this reply with my phone so as soon as I get home I will...
  20. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Well after I put it in the java code format the smileys don't appear anyway so...
  21. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Oh. an open parenthese makes the faces. That makes sense. Well. Not much I can do about that. and I'll get the highlighting right real quick.
    And I called all the methods in the driver program...
  22. Replies
    26
    Views
    3,516

    Re: Problem with Two-Dimensional Array Program

    Um. I'm not sure why in the correction private methods it changed all the equal signs to broken heart faces but yeah...those are equal signs.
  23. Replies
    26
    Views
    3,516

    Problem with Two-Dimensional Array Program

    This is a homework assignment for my csci 1302 class. The assignment is for the program to read a matrix of numbers from an input file (provided by the user), count up the number of rows and columns...
Results 1 to 23 of 24