Search:

Type: Posts; User: Huw

Search: Search took 0.34 seconds.

  1. Replies
    8
    Views
    484

    Re: Help with a java question...

    Okay, thankyou! and thankyou very much!
  2. Replies
    8
    Views
    484

    Re: Help with a java question...

    it runs, but how would i get it to show me the value of 'o'? I've tried System.out.println(o); but it hasn't worked.


    public class test{

    public static void main(String[] args) {


    }
  3. Replies
    8
    Views
    484

    Re: Help with a java question...

    I can't execute the code...I can get it to run, but I can't get it to print o?
  4. Replies
    8
    Views
    484

    Re: Help with a java question...

    I couldn't seem to get it to execute:/I'll try again..
  5. Replies
    8
    Views
    484

    Help with a java question...

    If this is against the rules here, please remove this topic.

    I'm trying to join a new forum specifically for java games, but to activate your account you need to answer a small trivia quiz. Being...
  6. Replies
    14
    Views
    435

    Re: Won't load next class...

    I think I may have got it to work!
  7. Replies
    14
    Views
    435

    Re: Won't load next class...

    I just tried calling repaint() in the method which changes the level, but I don't think any of my methods have 'if(level2==true)' are being run for some reason, so I think it might be a problem to do...
  8. Replies
    14
    Views
    435

    Re: Won't load next class...

    I think I've found that its the paint method which isn't being called again after level2 is true.

    Here's all the code:

    Maze:

    package maze;

    import javax.swing.JFrame;
  9. Replies
    14
    Views
    435

    Re: Won't load next class...

    I've added a main method to the class, but I still don't see how I'm going to get the class to 'restart' but with level2 true, I'm sorry if I seem really stupid with these questions.
  10. Replies
    14
    Views
    435

    Re: Won't load next class...

    If they all had main methods, how would the program know which to run, or am I just being stupid here?
    I don't know alot about java since I've learnt on the Internet using different tutorials etc.
  11. Replies
    14
    Views
    435

    Re: Won't load next class...

    I will try the adding some print statements.

    The main method is in a seperate class which then calls this class.
  12. Replies
    14
    Views
    435

    Won't load next class...

    Okay, so I'm making a small game in which you have to go through a maze and get to the end to get to the next level. So far I have 2 levels and both work when set to be played. What I can't seem to...
  13. Replies
    4
    Views
    1,332

    Re: Can't call paint() method from another class

    Had a quick look at that and looks very helpful, I'll go through it properly afterschool, thankyou very much!
  14. Replies
    4
    Views
    1,332

    Re: Can't call paint() method from another class

    Sorry to sound really stupid, but how would I do all that?
  15. Replies
    4
    Views
    1,332

    Can't call paint() method from another class

    Hi, so I'm planning to create a basic game with levels which are each painted from their own seperate level classes. I've made a class called 'Level1' which has the paint method which I want to use...
Results 1 to 15 of 15