I am making a Tetris game and I need to know how to make a exit button using JPanel.
This is what I did so far
\'\'\' package main;
import javax.swing.*