How to place two or more rows in one JTable cell? I tried adding '\ n' to the end of the line, but it does not work.
Try using HTML
<html>lineOne <br/> lineTwo </html>
As additional information: HTMl works because the default rendering for JTable is JLabel, the HTML performance in JTable is actually not very good, so if you notice performance problems after using a lot of HTMl, then it’s good to choose makign better
http://ckw.phys.ncku.edu.tw/public/pub/src/HTML/Languages/Java/Swing/swingHTML/Chapter27.htm , ,
Source: https://habr.com/ru/post/1782899/More articles:Самый простой способ литья Список to List - collectionsAnimation of different images in a list - androidiPhone: Can I take samples from the garage range and use them in my application? - iphonewhy in c language EOF IS -1? - cextjs, how to make a nested child using xTemplate when we don’t know how deep it is? - extjsМожно ли повысить ошибку, если присвоение переменной в элементе возвращает несколько значений? - sqlMediaPlayer does not play sound correctly - androidПространственное эффективное встроенное решение Haskell - haskellneed help with jquery tab plugins - jqueryDelta Sigma DAC from Verilog to VHDL - vhdlAll Articles