3

I need to write programm which must drawing graphs.. I use java with swing (if you think that swing it is not good decigion please offer other tools) .. And my teacher say that I must drawing graphs on checkered margin and I don't know what use in this situation.. If someone do something like this please help me.. How make this checkered margin (and my teacher say to me that this checkered margin must be scalable)

UPDATE

Oh I forget to say that I mast drawing graph by myself (set 2 dots and then my function must draw line between this dots)

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Aliaksei Bulhak
  • 6,078
  • 8
  • 45
  • 75
  • 1
    No need to reinvent the wheel ... use [JFreeChart](http://www.jfree.org/jfreechart/) for your graphs. Unless your assignment does not allow that – Robin Sep 25 '12 at 10:20
  • 1
    More on `JFreeChart` [here](http://stackoverflow.com/tags/java/info). For specific help, please edit your question to include an [sscce](http://sscce.org/) that exhibits the problem you describe. – trashgod Sep 25 '12 at 10:53

1 Answers1

3

For reference, MyPanel draws a gray checkerboard in its background; SineTest shows how to plot using cartesian coordinates.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045