my dog learned polymorphism
The moose likes Applets and the fly likes how do i draw a dotted straight line on an applet. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "how do i draw a dotted straight line on an applet." Watch "how do i draw a dotted straight line on an applet." New topic
Author

how do i draw a dotted straight line on an applet.

ravi vardhin
Ranch Hand

Joined: Jun 04, 2001
Posts: 37
how do i draw a dotted straight line on an applet.
can some one give the logic..
Thanks and regards,
ravi
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Ravi,
Try the following code.

Regards,
Manfred.
Amit Agarwal
Ranch Hand

Joined: May 09, 2001
Posts: 92
Hi ravi, if you are running your applet thru the java plugin, you can use the BasicStroke class of the java2D api. it is available in the java.awt.geom package. Usage:


Amit
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how do i draw a dotted straight line on an applet.
 
Similar Threads
Drawing dotted/dashed lines in a scaled JPanel?
Rational XDE - create stereotype ?
How do i find the centre of the applet
Draw Rectangle dotted line the selected Image area
Drawing a rectangular box