Is there a way to produce animated dashed line using BasicStroke from java.awt? My desire is to have a running dashed-line in the same way that photoshop’s rectangle marque tool has its line animated.
Is there a way to produce animated dashed line using BasicStroke from java.awt? My
Share
Use a dashed line, a
Thread(or a SwingTimer) & combine them withrepaint()and some tweaking of where the dashes start and end – and there you have it.Example