Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.10 seconds.

  1. Replies
    27
    Views
    3,624

    Re: Help with GUI

    I'm not going to mix topics, and I'm not interested in further debating it. Trying some stuff is not the same as going through the tutorial and asking a specific question (with an SSCCE). If you want...
  2. Replies
    27
    Views
    3,624

    Re: Help with GUI

    I believe the short answer to your question is that you have to add a breakpoint before you start debugging (that way the program knows where to stop so you can look at it step by step). The actual...
  3. Replies
    27
    Views
    3,624

    Re: Help with GUI

    Yes, and I gave you some information in that thread, which you proceeded to ignore or argue with. You were given hints and links to tutorials- if you don't want to follow them then that's your...
  4. Replies
    27
    Views
    3,624

    Re: Help with GUI

    I still really recommend you step through it with a debugger. That's all I'm doing. There's no magic to it.

    But what's happening is that the first time you hit enter, you go through this if...
  5. Replies
    27
    Views
    3,624

    Re: Help with GUI

    You're welcome (see, isn't that better than me just telling you?). But I really hope you understand why it works now. If not, I can try to explain it a little better.
  6. Replies
    27
    Views
    3,624

    Re: Help with GUI

    Use whatever debugger comes with your IDE of choice.

    And I can't "just tell you" because that wouldn't be helping. Actually, I pretty much HAVE told you. It's up to you to put the pieces together....
  7. Replies
    27
    Views
    3,624

    Re: Help with GUI

    Hint: What is the difference between what these two pieces of code might do?

    boolean something = true;
    boolean somethingElse = false;
    if(something){
    somethingElse = true;
    doFirstThing();...
  8. Replies
    27
    Views
    3,624

    Re: Help with GUI

    What happens after that though? I highly recommend using a debugger. Or you could go the long route and put print statements in every single if statement.
  9. Replies
    27
    Views
    3,624

    Re: Help with GUI

    Seriously, you're going to want to stop bumping your thread, for the reasons I already told you.

    Take a look at the flow of the program in your key listener. More specifically, what happens when...
  10. Replies
    27
    Views
    3,624

    Re: Help with GUI

    First off, I don't want to be annoying, but that's not an SSCCE. It's split up into multiple classes, most of which have nothing to do with the problem, and your Game class still contains way too...
  11. Replies
    27
    Views
    3,624

    Re: Help with GUI

    SSCCE stands for Short, Self-Contained, Compilable Example. What you posted is none of them.

    When you post code, it should be as short as possible while still showing the behavior, and we should...
  12. Replies
    27
    Views
    3,624

    Re: Help with GUI

    You shouldn't bump your thread like that. It looks impatient- there are hundreds of posts here each with its own urgent user, and bumping your thread after only 20 minutes makes it look like you...
Results 1 to 12 of 12