简体   繁体   中英

JTextField couldn't hold enter chars

I am copying a JTextArea's content to a JTextField and then getting the same text from JTextField and setting to JTextArea . But at last case; all text is coming in same line. Enters are missing. How can I protect the content?

yourJTextArea.setLineWrap(true)如果我正确理解了您的问题,我认为这就是您要寻找的东西。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM