import javax.swing.*; public class Main { public static void main(String[] args) { JFrame frame = new JFrame("Airbus"); frame.setContentPane(new FormMap().MainPanel); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLocation(500, 200); frame.pack(); frame.setSize(1000, 500); frame.setVisible(true); } }