1

Im developing Hospital Managment System Application using java, i have ICD-10 codes with a very long texts, i want to show them with jtable, but since the text is too long i need the JTable cell to wrap text as needed & change the hieght of that row as required.

is there any idea how to do that, or any other suggestions if there is.

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Motasem
  • 599
  • 1
  • 6
  • 13
  • 1
    Similar discussion: [How to wrap lines in a jtable cell?](http://stackoverflow.com/questions/965023/how-to-wrap-lines-in-a-jtable-cell) – Harry Joy Dec 14 '12 at 06:24

1 Answers1

1

Rather than clutter the table with wrapped text in each row, consider displaying the full text in an adjacent JTextComponent only for the selected row. Because ICD-10 is hierarchical in nature, also consider an outline view, as shown here.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045