public void clear() { contact = null; personView.clear(); teleView.clear(); emailView.clear(); websiteView.clear(); addressView.clear(); if (cbTelAddress != null) { cbTelAddress.removeItemListener(this); remove(cbTelAddress); revalidate(); cbTelAddress = null; } linkTelAddress = false; note.setText(""); }
public void setNote(Note n) { if (n != null) { String s = n.getText().replace('\n', ' '); note.setText(s); } }