I have an ambitious project to create my math game (which I found to be better than a simple calculator) in just a JFrame
, with methods only, without using any other class in the package ...
With the help of Swing
and Netbeans builder
GUI
One day, I've heard of the Timer
class, however, I can not find anything about using it within a method, just inside another class without main
I tried to use it in a method in a question I asked at a certain time, unfortunately, I ended up losing the code (because it did not work)
Could someone give me an example of what it would be like to use this class in a method? (preferably in a decreasing timer)