Say I have a shape that I have drawn through paintComponent(), fillRect, or drawOval,

How would I go about flipping it, so that the shape would not be going from the top left, but from the bottom upwards?

有帮助吗?

解决方案

All I had to do was use the height of my panel, and subtract it from the height of the object.

for ex:

    int height = (1000 - n);

where n is the height that you wish the shape to be.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top