用Jbuilder试试,看看生成的代吗

解决方案 »

  1.   

    JButton button = new JButton("bbb");
    textPane.add(button);
    button.addActionListener(new ActionListener(){
                                   void actionPerformed(ActionEcent e){
                                           .....
                                   }
                             });
      

  2.   

    那那个按钮是如何在textpane上显示的呢????
      

  3.   

    我用jbuilder了,它没反映啊??
    好郁闷谁能帮我???
      

  4.   

    在JtextPane中加入按钮?JTextPane不是显示文字的么?就像文本框一样呀,你在它里面加上按钮干吗?
      

  5.   

    用Jbuilder试试,看看生成的代吗