Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.09 seconds.

  1. Replies
    34
    Views
    9,283

    [SOLVED] Re: how to put changeable value in JTextField?

    Ok, so you want to call the setText() method whenever ball.intersects(block), right?
  2. Replies
    34
    Views
    9,283

    [SOLVED] Re: how to put changeable value in JTextField?

    You need to ask the questions:
    1) What event happens that should cause the text field to update?
    2) Where in my code does the event get handled?

    Now, you said that the score is supposed to...
  3. Replies
    34
    Views
    9,283

    [SOLVED] Re: how to put changeable value in JTextField?

    The only proper way to change the value of a JTextField is by calling the setText() method. I believe it has to do with the fact that JTextField are not constantly redrawing themselves, so changing...
Results 1 to 3 of 3