不就是往JTextPane里面加字符串吗?这应该不难,楼主可以去查查JTextPane的API,然后自己动手写写会比较好些,要是实在是不想写的话可以联系我:
[email protected]

解决方案 »

  1.   

    反正就是类似a.setText(b.getText()); 的操作,前提是两者都是可访问的(比如public)
      

  2.   

    此处有解。http://community.csdn.net/Expert/topic/3141/3141119.xml?temp=.0691492 *********************************************
           BS不结帖的
      

  3.   

    平凡, 你得强制转换成你的Parent类。比如:  你的Parent是JFrame类型,他的名字是MyFrame, 里面有你的TextArea,并且TextArea是直接加到你的Contentpane中。
      则基本上应该是这样的步骤:    MyFrame frame = (MyFrame)this.getParent().getParent();
        frame.getTextArea();
    Ok?