if you use version 1.2 or higher your Graphics is probably in fact a Graphics2D
so cast it:

Graphics g2D = (Graphics2D) g;



othmane nadjemi wrote:
Thanks for the answer but in my code i am using Graphics  and not Graphics2D.
How to deal with this ?

King regards;

Othmane NADJEMI
Le lundi 25 Octobre 2004 14:06, Auguste Genovesio a écrit :
  
create a java.awt.BasicStroke with dash
and use

g.setStroke()

othmane nadjemi wrote:
    
Hello,
I need help on how to draw discontinu line in Java ?

King regards

Othmane NADJEMI

==========================================================================
= To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body of the message "signoff JAVA2D-INTEREST".  For general help, send
email to [EMAIL PROTECTED] and include in the body of the message
"help".
      
--
A. Genovesio
Quantitative Image Analysis Unit
Institut Pasteur
25, rue du Docteur Roux
75724 Paris Cedex 15


===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
    

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".


  

--
A. Genovesio
Quantitative Image Analysis Unit
Institut Pasteur
25, rue du Docteur Roux
75724 Paris Cedex 15
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to