impossible.
if there is only JTextArea on your frame and you click the update or insert button directly, there will be some problem about the focus. the value you get from jtextarea is empty. Does this make sense?