title: A dashed line without use of stroke in Java
body: <p>Is is possible to draw a dashed line(non-continues) in java by using <code>Graphics</code> but without using stroke?</p>
  
  <p>For example we have <code>Shape line = new Line2D.Double()</code> but this always creates a continues line.</p>
  
  <p>I need this as i have to build things(Shapes) in a seperate class and draw them in other class and i have no way to force someone to draw a dashed line if he does not use stroke.</p>