Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML table inside jLabel not aligning and resizing

 
Sowmi viji
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to create a table with multiple text in each row. Hence i thought of using Jlabel that renders a html table since i want one column and multiple text in each row.

I have put the jlabels inside the jpanel using table cell renderer.

Here's what i have tried.



It seems to be working fine with the preferred size. But when the Jpanel is shrinked the columns are not aligned and the space between the columns are non uniform in each row.

am using netbeans IDE.

Thank you so much for the help in advance !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic