javax.swing.Timer vs java.util.Timer -


i heard javax.swing classes should used if iam building swing gui. use javax.swing.timer without gui in order create timer loop. mean without gui shall use java.util.timer?

is big error use javax.swing.timer without gui ? can cause performance error or slowdown?

what approaches creating loop run passively or without halting main thread?

thanks in advance!

yes not recommended since dependency need.

you should try have few possible dependencies. if java.util.timer satisfies needs should choose one.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -