# Simple drawDashedRectangle?

**URL:** <https://forum.juce.com/t/simple-drawdashedrectangle/803>\
**Category:** General JUCE discussion\
**Created:** [April 18, 2006, 2:17pm UTC](https://forum.juce.com/t/simple-drawdashedrectangle/803 "2006-04-18T14:17:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![haydxn](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@haydxn](https://forum.juce.com/u/haydxn)\
**Post date:** [April 18, 2006, 2:17pm UTC](https://forum.juce.com/t/simple-drawdashedrectangle/803/1 "2006-04-18T14:17:30Z")

</div>

am i very stupid, or is there no direct way to draw a dashed rectangle?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 18, 2006, 2:46pm UTC](https://forum.juce.com/t/simple-drawdashedrectangle/803/2 "2006-04-18T14:46:59Z")

</div>

well it is quite easy, though I’m not sure you’re necessarily being stupid by not spotting it - check out the PathStrokeType::createDashedStroke() method.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:02am UTC](https://forum.juce.com/t/simple-drawdashedrectangle/803/3 "2017-05-12T10:02:24Z")

</div>

Closed on May 12, 2017, 10:02am UTC


