Hi I want to draw a stroke line starting from point (x1,y1)to another point (x2,y2)
If any help .

Here is Java Sun tutorial on basic shapes

I have got the solution from the linked web
that is using the class

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.