nw.addListener( this );
// ---- keyboard shortcuts ----
imap.put( KeyStroke.getKeyStroke( KeyEvent.VK_R, myMeta ), "record" ); // VK_SPACE doesn't work (WHY?)
// amap.put( "record", actionRecord );
amap.put( "record", new DoClickAction( ggRecord ));
imap.put( KeyStroke.getKeyStroke( KeyEvent.VK_PERIOD, myMeta ), "abort" );
// amap.put( "abort", actionAbort );
amap.put( "abort", new DoClickAction( ggAbort ));
imap.put( KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, myMeta ), "stop" );
// amap.put( "stop", actionStop );
amap.put( "stop", new DoClickAction( ggStop ));
imap.put( KeyStroke.getKeyStroke( KeyEvent.VK_ESCAPE, 0 ), "close" );
amap.put( "close", actionClose );
docFrame.setForceMeters( true );
player.setActiveInput( true );