plotting graph

will some please explain with a sample program the details of how to draw and plott straight line
[104 byte] By [riddhia] at [2007-10-2 22:13:00]
# 1

Read the API documentation for the java.awt.Graphics class and Graphics2D class.

public class MyPanel extends JPanel{

...

...

public void paintComponent(Graphics g){

super.paintComponent(g);

// call drawLine() here

}

}

hiwaa at 2007-7-14 1:29:49 > top of Java-index,Java Essentials,New To Java...