That clears it up!
I have no idea what we're supposed to do with that - either one.
Type: Posts; User: GregBrannon
That clears it up!
I have no idea what we're supposed to do with that - either one.
I don't get the difficulty. The center of your JFrame is:
centerX = frame.getWidth() / 2;
centerY = frame.getHeight() / 2;
That defines the center of the JFrame which is the origin of a...
Describe your coordinate system in terms of the native coordinate system. From there, it's relatively simple math. For example, if the display area is 400 x 400, and you desire the center of the...
You're talking about Graphics.drawLine(), right? And you have a coordinate system in the JFrame that differs from that provided natively? Then I suggest you provide a translation from your...