Hello Guys,

I know how to draw line and shapes but how can i draw a parabol??? ( i need a 2D line)

Any suggestion or pointers are appreciated!

Recommended Answers

Check out java.awt.geom in the Java API.
The CubicCurve2D may work for you.

Jump to Post

All 2 Replies

Check out java.awt.geom in the Java API.
The CubicCurve2D may work for you.

You can could also create a Path2D instance and add points to it if you have a specific formula that you need to plot.

Be a part of the DaniWeb community

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