Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravi,
Try the following code.

Regards,
Manfred.
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic