Search code examples
javaswingjtablejtextarea

How to save the value in JTextArea into JTable?


I have a JTable with four columns, in the fourth column I placed the JTextarea.. After entering the value in text area, I will reload the table , at that time value inside text area is not get saved and text area is empty.

How to solve my problem, suggestions please?


Solution

  • Try to get access through getter. Like

    public JTextArea getTextArea()
    {
        return jTextAreaField;
    }
    

    and then

    getTextArea().append("ur text");