aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Coordinate system Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Coordinate system" Watch "Coordinate system" New topic
Author

Coordinate system

Inuka Jayasekera
Greenhorn

Joined: Dec 21, 2003
Posts: 8
Hi,
I have tried looking everywhere and finding this out but I haven't had much luck. My problem is that I need to change the default coordinate system in a JPanel (with y incresing from top to bottom) to the standard coordinate system (with y increasing from bottom to top).
From what I have read, there is a "User Coordinate System" feature but I can't figure anything else about it.
Can anyone help??
Thanks in advance... )
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
You could just subtract each y coord from a constant, say the screen pixel height.


The nice thing about Standards is that there are so many to choose from!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Coordinate system
 
Similar Threads
Need help writing a code involving bar charts!
Problem with setLocation()
Coordinate System in Java
graphics.drawImage()
Android: set y-coordinate of textview dynamically