Repaint is not functioning properly as required
I have built a tetris game. Now in that I have used a JPanel for displaying content and the blocks (using the paintComponents() method). The problem is whenever I try to call the tetris program from another JFrame it does not paint at all. The code for my tetris main menu is: import javax.swing.*; import sun.audio.AudioPlayer; import sun.audio.AudioStream; import java.awt.*; import java.awt.event.*; import java.io.FileInputStream; import java.io.InputStream; @SuppressWarnings("serial") public class Tetris_MainMenu extends JFrame implements ActionListener { @SuppressWarnings("unused") public