[英]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. 我有一个包含四列的JTable
,在第四列中放置了JTextarea
..在文本区域中输入值之后,我将重新加载该表,此时将不保存文JTextarea
的值并且文本区域为空。
How to solve my problem, suggestions please? 如何解决我的问题,请提出建议?
Try to get access through getter. 尝试通过getter获得访问权限。 Like 喜欢
public JTextArea getTextArea()
{
return jTextAreaField;
}
and then 接着
getTextArea().append("ur text");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.