There is constructor of class extending JFrame:
import java.awt.*; import javax.swing.*; public class ChessFrame extends JFrame { public ChessFrame () {