I need to make a Digital Clock, but for this it is necessary to create a main class and a JFrame, in which I have to inherit the Thread class, and not implement Runnable.
Can someone tell me how to inherit the Thread in the JFrame?
I need to make a Digital Clock, but for this it is necessary to create a main class and a JFrame, in which I have to inherit the Thread class, and not implement Runnable.
Can someone tell me how to inherit the Thread in the JFrame?