Hi to All,
This is Raja,i am implementing one sample JTable program, i want to insert icons dynamically to JTable last column,the icons are inserted dynamically,but here problem is that total icons are not displaying(only few are displayed) line wrap is not working here in JTable last column,the total icons are displaying only when added icons to second time to JTable last column(here line wrap wors at second time). i want to display total icons at first time only with line wrap, please give me any suggestions.here attached the code.
The below code works for line wrap in JTable last column at second time.i want to insert total icons at first time only with line wrap..
This is a JTable you're asking about? Then you don't need any of that code. The cells of a JTable are by default rendered by a JLabel, and JLabel can display an Icon. At most you might need a TableCellRenderer to call the setIcon method.
Joined: Jul 07, 2008
here attached the screen shots
In first screenshot, the icons are not matched with tolltip texts and also here no line wrap
In second screen shot, icons are displaying with line wrap containg icons.
Here it works for second time only,not for the first tme.i attached code works fine for the second time well.