frame = new JFrame( "Wumpus World" );
frame.getContentPane().setBackground( Color.WHITE );
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setSize( 926, 603 );
frame.getContentPane().setLayout( new MigLayout("", "[540px:n][grow,fill]", "[30px,top][300px,top][100px,top][grow]") );
JPanel scorePanel = new JPanel();
FlowLayout flowLayout = (FlowLayout) scorePanel.getLayout();
flowLayout.setAlignment(FlowLayout.LEFT);
scorePanel.setBackground(Color.WHITE);
frame.getContentPane().add(scorePanel, "cell 0 0,grow");
JLabel lblScore = new JLabel("Score");
scorePanel.add(lblScore);
final JTextField txtScore = new JTextField();
gameView.getKsession().getChannels().put( "score", new Channel() {
public void send(Object object) {
txtScore.setText( "" + ((Score ) object).getValue() );
}
} );
txtScore.setEditable(false);
scorePanel.add(txtScore);
txtScore.setColumns(10);
JScrollPane scrollPane = new JScrollPane();
frame.getContentPane().add(scrollPane, "cell 1 0 1 4,grow");
JPanel actionPanel = new JPanel();
actionPanel.setBackground( Color.WHITE );
frame.getContentPane().add( actionPanel, "cell 0 1,grow" );
actionPanel.setLayout( new MigLayout("", "[200px,left][320px:n]", "[grow]") );
JPanel controls = new JPanel();
controls.setBackground( Color.WHITE );
controls.setLayout( new MigLayout( "", "[grow,fill]", "[::100px,top][200px,top]" ) );
controls.add( drawActionPanel(), "cell 0 0,alignx left,aligny top" );
controls.add( drawMovePanel(), "cell 0 1,alignx left,growy" );
actionPanel.add( controls, "cell 0 0,grow" );