javax.swing.Timer vs java.util.Timer
<p>I heard  all <code>javax.swing</code> classes should only be used if Iam actually building a <code>Swing GUI</code>.
I would like to use <code>javax.swing.Timer</code> without <code>GUI</code> in order to create timer loop. Does it mean that without GUI shall i use <code>java.util.Timer</code>?</p>

<p>Is it big error to use <code>javax.swing.Timer</code> without <code>GUI</code> ? Can it cause some performance error or slowdown?</p>

<p>What are some approaches to creating a loop that will run passively or without halting the main thread?</p>

<p>Thanks in Advance!</p>
