import javax.swing.*; import java.awt.*; public class MainFond { public static void main(String[] args) { JFrame frame = new JFrame("Fond"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Fond panel = new Fond(); frame.add(panel); frame.setSize(500,500); frame.setLocation(500,250); frame.setVisible(true); } }