Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.16 seconds.

  1. Replies
    5
    Views
    1,760

    Re: Confused about JPanel.getY()

    Yeah, exactly. That's what I was trying to point out in my first post, sorry if I wasn't clear. I believe that ~30 is from the JFrame's title bar.
  2. Replies
    5
    Views
    1,760

    Re: Confused about JPanel.getY()

    The drawingPanel.getY() is in its parent's coordinate system- the JPanel you're calling pane. However, the MouseListener is on the JFrame, which is pane's parent. I don't really know why you're...
  3. Replies
    5
    Views
    1,760

    Re: Confused about JPanel.getY()

    When posting code, please use highlight tags to preserve formatting.

    Your MouseListener is on the JFrame, so the coordinates that it prints out may or may not include the JFrame border, the top...
Results 1 to 3 of 3