Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    5
    Views
    1,295

    Re: How to do a collision test with two JLables?

    Take a piece of paper, draw two shapes that are colliding, label them with the x,y and w&h and do some math to get the values when the shapes are colliding.
  2. Replies
    5
    Views
    1,295

    Re: How to do a collision test with two JLables?

    The components size (W & H) and position (x & y) are available from the class's methods.
    Read the API doc for the classes being used:
    http://docs.oracle.com/javase/7/docs/api/
  3. Replies
    5
    Views
    1,295

    Re: How to do a collision test with two JLables?

    Test if the boundaries of the different shapes/objects touch or overlap.
Results 1 to 3 of 3