There are numerous problems with this coed.
Firs, if you are using Swing, you should not extend Frame, but rather JFrame.
Second, it is usually frowned upon for your program to extend JFrame, either.
It would be better to extend JPanel and have your main() method create a JFrame and put your panel in that JFrame.
Third, the first line of your paintComponent() method should be .
Fourth, you do not have a main() method.
Fifth, all of the GUI code should be executed on the EventThread, not the main thread.
You should start with something much simpler than this. For example, just write something that displays "Hello" in a JLabel that is displayed in your JFrame.
Once you get that to work, then you can go on to show your panel with its buttons, etc.
When you get that to work, then you can go on to add the listeners and get that part to work, too.