aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes HTML table inside jLabel not aligning and resizing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HTML table inside jLabel not aligning and resizing" Watch "HTML table inside jLabel not aligning and resizing" New topic
Author

HTML table inside jLabel not aligning and resizing

Sowmi viji
Greenhorn

Joined: Aug 13, 2013
Posts: 1
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 !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML table inside jLabel not aligning and resizing