DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Tim Guest

    Question about coordinates

    I just finished making a simple beginning applet that just displayed the message,"Welcome
    to Java Programming", and drew a line above the text and another line below
    the text. The coordinates for the top line were(15, 10) and the coordinates
    for the bottom line were(15, 30). My question is shouldn't it really be listed
    as(15, -30). If you move down the y-axis you move in a negative direction.
    Seems to me the y coordinate for the bottom line should be listed as -30.
    Can anyone clear this up?


  2. #2
    David Thornton Guest

    Re: Question about coordinates

    hey tim,

    in java the x is regular, but the y is backwards. the (0,0) spot is the
    top-left corner of the screen. Why? Heck if I know.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.