6869707172737475767778
inputComp.addPropertyChangeListener("value",this); inputComp.addVetoableChangeListener(this); inputComp.addEventListener("change",this); PlainDocument dataModel = (PlainDocument)inputComp.getDocument(); dataModel.addDocumentListener(this); }
5354555657585960616263
PlainDocument dataModel = new PlainDocument(); input.setDocument(dataModel); input.setValue(new Date()); input.addEventListener("change",this); input.addPropertyChangeListener("value",this); dataModel.addDocumentListener(this); }