import javax.swing.JFrame; import javax.swing.JComponent; public class profileMaker extends JFrame { public static void main(String[] args) { JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame = new JFrame("ProfileMaker"); //Title frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); profileMakerGUI panMain = new profileMakerGUI(frame); frame.setResizable(false); frame.setContentPane(panMain); frame.setJMenuBar(panMain.getMenu()); frame.pack(); frame.setVisible(true); } }