Take a look at the addnew() method i wrote for you in that other topic. Replace the JTextarea with textfield and it will update those fields.