final JPanel butPane;
final WindowAdapter winListener;
final String className = getClass().getName();
final AudioFileDescr displayAFD = doc.getDisplayDescr();
final JButton ggPeakReset;
final JToolBar tbMonitoring;
final TimeLabel lbTime;
final MessageFormat frmtPeak = new MessageFormat( getResourceString( "msgPeak" ), Locale.US ); // XXX Locale.US
final Object[] peakArgs = new Object[1];
final JRootPane rp = getRootPane();
final InputMap imap = rp.getInputMap( JComponent.WHEN_IN_FOCUSED_WINDOW );
final ActionMap amap = rp.getActionMap();
final JButton ggAbort, ggRecord, ggStop, ggClose;
final int myMeta = BasicMenuFactory.MENU_SHORTCUT == InputEvent.CTRL_MASK ?
InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK : BasicMenuFactory.MENU_SHORTCUT; // META on Mac, CTRL+SHIFT on PC
// use same encoding as parent document
encodingString = (displayAFD.sampleFormat == AudioFileDescr.FORMAT_INT ? "int" : "float") +
String.valueOf( displayAFD.bitsPerSample );
//encodingString = "float32";
audioPrefs = app.getUserPrefs().node( PrefsUtil.NODE_AUDIO );
classPrefs = app.getUserPrefs().node( className.substring( className.lastIndexOf( '.' ) + 1 ));
recPane = new SpringPanel( 4, 2, 4, 2 );
// affp = new AudioFileFormatPane( AudioFileFormatPane.ENCODING );
// recPane.gridAdd( new JLabel( getResourceString( "labelFormat" ), SwingConstants.RIGHT ), 0, 1 );
// recPane.gridAdd( affp, 1, 1 );
ggRecordConfig = new PrefComboBox();
ggRecordConfig.setFocusable( false );
lbPeak = new JLabel();
actionPeakReset = new ActionPeakReset();
ggPeakReset = new JButton( actionPeakReset );
ggPeakReset.setFocusable( false );
lbTime = new TimeLabel();
tbMonitoring = new JToolBar();
tbMonitoring.setFloatable( false );
ggMonitoring = new JToggleButton( new ActionMonitoring() );
ggMonitoring.setFocusable( false );
tbMonitoring.add( ggMonitoring );
recPane.gridAdd( lbTime, 1, 0, -2, 1 );
recPane.gridAdd( new JLabel( getResourceString( "labelRecInputs" ), SwingConstants.RIGHT ), 0, 1 );
recPane.gridAdd( ggRecordConfig, 1, 1, -1, 1 );
recPane.gridAdd( tbMonitoring, 2, 1 );
recPane.gridAdd( new JLabel( getResourceString( "labelHeadroom" ) + " :", SwingConstants.RIGHT ), 0, 2 );