Drawing a coordinate frame

Hi,I need to draw a coordinate frame (a grid)...horizontal and vertical lines with a spacing of 100 pixel. Should I use several g2.draw(new Line2D.Double(...)) or is there already a method available?Thanks!
[227 byte] By [SFLa] at [2007-11-27 4:46:10]
# 1
> is there already a method available?Yes, Graphics.drawLine(...).
camickra at 2007-7-12 9:58:41 > top of Java-index,Desktop,Core GUI APIs...
# 2
...but there is no method to draw a grid? :)
SFLa at 2007-7-12 9:58:41 > top of Java-index,Desktop,Core GUI APIs...
# 3
Its called a loop! You position each line where ever you want.
camickra at 2007-7-12 9:58:41 > top of Java-index,Desktop,Core GUI APIs...
# 4
Translated: that means that there probably is no method to automatically create a coordinate system grid w/ java graphics,.... but it should be easy to cook up on your own!
petes1234a at 2007-7-12 9:58:41 > top of Java-index,Desktop,Core GUI APIs...