contentPane.add(sourceControls, BorderLayout.NORTH);
videoPanel = new JPanel();
videoPanel.setLayout(new GridLayout(1, 2, 16, 0));
localCanvas = new Canvas();
localCanvas.setBackground(Color.black);
localCanvas.setSize(320, 180);
localStreamControls = new JPanel();
localStreamControls.setLayout(new BoxLayout(localStreamControls, BoxLayout.X_AXIS));
localStreamControls.add(Box.createHorizontalStrut(4));
streamToLabel = new JLabel("Stream To:");
streamToLabel.setDisplayedMnemonicIndex(7);
localStreamControls.add(streamToLabel);
streamToTextField = new JTextField();
streamToTextField.setFocusAccelerator('t');
streamToTextField.setColumns(12);
localStreamControls.add(streamToTextField);
sendButton = new JButton("Send");
sendButton.setMnemonic('s');
localStreamControls.add(sendButton);
sendSnapshotButton = new JButton("Snap");
sendSnapshotButton.setMnemonic('n');
localStreamControls.add(sendSnapshotButton);
localVideoSurface = mediaPlayerFactory.newVideoSurface(localCanvas);
localMediaPlayer.setVideoSurface(localVideoSurface);
localPanel = new JPanel();
localPanel.setBorder(new TitledBorder("Local"));
localPanel.setLayout(new BorderLayout(0, 8));
localPanel.add(localCanvas, BorderLayout.CENTER);
localPanel.add(localStreamControls, BorderLayout.SOUTH);
remoteCanvas = new Canvas();
remoteCanvas.setBackground(Color.black);
remoteCanvas.setSize(320, 180);
remoteStreamControls = new JPanel();
remoteStreamControls.setLayout(new BoxLayout(remoteStreamControls, BoxLayout.X_AXIS));