/**
* Pushes the destination MAC address from the text field to the hardware
*
*/
protected void updateDestMac() {
MACAddress addr;
try {
addr = new MACAddress(this.macDestAddrTextField.getText());
nf2.writeReg(NFDeviceConsts.EVT_CAP_DST_MAC_HI_REG, addr.getHighShort());
nf2.writeReg(NFDeviceConsts.EVT_CAP_DST_MAC_LO_REG, addr.getLowInt());
macDestAddrTextField.setBackground(Color.WHITE);
} catch (Exception e) {
macDestAddrTextField.setBackground(Color.RED);
}
}