另外,若要讓文字內容在超出視窗寬度時能自動換行,則將JTextArea 物件設定setLineWrap(true)。 import java.awt.Font;; import javax.swing.JFrame;
確定! 回上一頁