frame.setContentPane(GameControl.createConfigurationPanel(controls));
Container c = frame.getContentPane(); c.setLayout(new BorderLayout());  ControlConfigurationPanel ccp = new ControlConfigurationPanel(controls, 2); c.add(ccp, BorderLayout.CENTER); JPanel bottom = new JPanel(); bottom.setLayout(new FlowLayout()); JButton button = new JButton("Close"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { for (GameControl control : controls) { System.out.println(control.getName() + ":"); for (Binding binding : control.getBindings()) { System.out.println("\t" + binding.getName()); } System.out.println("-------"); } game.finish(); } }); bottom.add(button); c.add(bottom, BorderLayout.SOUTH);
			public Object call() throws Exception {				JInternalFrame frame = new JInternalFrame();				frame.setTitle("Configure Controls");				frame.setContentPane(GameControl.createConfigurationPanel(controls));				frame.pack();				frame.setLocation(250, 125);				frame.setVisible(true);				desktopState.getDesktop().getJDesktop().add(frame);								// Show the mouse cursor				MouseInput.get().setCursorVisible(true);								return null;			}