hello there

Can anyone please tell how to create 2-D graphs in Java ? (X-axis and Y-axis stuff)

Are you looking to write the code or for a package that does it?

The Graphics and Graphics2D classes have methods for drawing. You override a paint/paintComponent method and use a drawing method to create anything you want.

I was asking if there is a Java API for this purpose.
I would be more than pleased if the code can be sent to me or pasted here, if you have it.

Read the API doc or use Google.

You may need Graphics and Graphics2D classes. Then, you may want awt and/or some swing classes depending on your style of coding. Use google and search for sample code for graphic 2d.

Be a part of the DaniWeb community

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