2
I’m on a kind of ambitious project to create my little math game (which I found better than a simple calculator) in just one JFrame
, methods only, without using any other class in the package...
With the help of Swing
and the GUI builder
netbeans
One day, I heard about the class Timer
, however, I find nothing about using it within a method, only within another class without the main
I tried to use it in a method in a question I asked a while ago, unfortunately I ended up losing the code (because it didn’t work)
Could someone give me an example of what would be the use of this class in a method? (preferably on a decreasing timer)
An example of the Timer class application? It would be interesting to edit, citing a more specific situation for the use, so that the question is not wide, since there may be countless examples using this class.
– user28595
OK @Diegof, edited with a few words
– Fabricio Cardoso