Question about coordinates


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Question about coordinates

  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?

    Tim

  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.

    David

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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