I´m a begginer in java and i would like to know how can i create graphs like:

y=ax+b for example

thanks

Recommended Answers

All 5 Replies

Are you familiar with any of AWT or Swing?

not really:S

It is not very difficult. Just start reading some tutorial. One thing, if you want to use JAVA for plotting and graphing only, I don't think it will be a good idea. MATLAB or Maple or similar softwares will serve you better.

The 2D graphics tutorial should be enough to get you started: http://java.sun.com/docs/books/tutorial/2d/index.html
Once you see how to paint a simple line or geometric primitive on a frame, you should have no trouble drawing a basic graph of a function.

thanks;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.