Meaningless Drivel is fun!*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
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://aspose.com/file-tools
 
subject: how do i draw a dotted straight line on an applet.
 
Similar Threads
Drawing dotted/dashed lines in a scaled JPanel?
Drawing a rectangular box
Draw Rectangle dotted line the selected Image area
Rational XDE - create stereotype ?
How do i find the centre of the applet