protected void createAndShowGUI() {
   GamePanel gamePanel = new GamePanel();
   gamePanel.setBackground(Color.WHITE);
   gamePanel.setPreferredSize(new Dimension(320, 240));
   getContentPane().add(gamePanel);
   setDefaultCloseOperation(EXIT_ON_CLOSE);
   setTitle("Hello World!");
   pack();
   frameRate.initialize();
   setVisible(true);
 }