DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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?

    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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links