@Override public void populateFrame(Audio a){
  if (!(a instanceof AudioBuffer)) {
    throw new IllegalArgumentException(a.getSystemName() + " is not an AudioBuffer object");
  }
  super.populateFrame(a);
  AudioBuffer b=(AudioBuffer)a;
  url.setText(b.getURL());
  stream.setSelected(b.isStreamed());
  stream.setEnabled(false);
  loopStart.setValue(b.getStartLoopPoint());
  loopEnd.setValue(b.getEndLoopPoint());
  loopStart.setEnabled(true);
  loopStartLabel.setEnabled(true);
  loopEnd.setEnabled(true);
  loopEndLabel.setEnabled(true);
  this.newBuffer=false;
}

@ Override public void populateFrame ( Audio a ) { if ( ! ( a instanceof AudioBuffer ) ) { throw new IllegalArgumentException ( a . getSystemName ( ) + " is not an AudioBuffer object" ) ; } super . populateFrame ( a ) ; AudioBuffer b = ( AudioBuffer ) a ; url . setText ( b . getURL ( ) ) ; stream . setSelected ( b . isStreamed ( ) ) ; stream . setEnabled ( false ) ; loopStart . setValue ( b . getStartLoopPoint ( ) ) ; loopEnd . setValue ( b . getEndLoopPoint ( ) ) ; loopStart . setEnabled ( true ) ; loopStartLabel . setEnabled ( true ) ; loopEnd . setEnabled ( true ) ; loopEndLabel . setEnabled ( true ) ; this . newBuffer = false ; }
method to populate the edit buffer frame with current values
