<textarea cols="82" rows="10" name="ReplyContent" class='content'></textarea>

解决方案 »

  1.   

    <textarea cols="82" rows="10" name="ReplyContent" class='content'></textarea>
    cols="82":cols用来指定每行显示的字符数; 
    rows="10":rows用来显示显示行数,
      

  2.   

    new TextArea ("ddddd", 10, 20, TextArea.SCROLLBARS_VERTICAL_ONLY)
      

  3.   

    jTextArea.setLineWrap(true);
            jTextArea.setWrapStyleWord(true);
      

  4.   

    JTextArea textArea=new JTextArea();
    textArea.setWrapStyleWord(true);
    textArea.setLineWrap(true);
      

  5.   

    哦,你是在swing上说!我还以为是基于web的呢