Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wraping in JTable cell

 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to everyone,
I want to show 20 number of image icons in JTable cell(last column), i can put icons upto 10 only,the remaining icons are not shown,is there any way to wrap that cell so that i can show 20 icons using wrapping in JTable cell. please provide any sample demo program,so that i can implement in my program ...

Thank you in advance ..
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you displaying the images right now? Custom renderer?
 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yah using customcellrenderer .. if i extend JTextArea it can wrap the line because JTextArea having that property of wrap the line,but i cann't add an image icon to JTextArea directly.. how to solve it ??
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider JPanel instead of JTextArea. JPanel with flow layout can also wrap contents. You can out the icons inside JLabels and add the labels to the panel.
 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cau you please provide me any sample example by extend JPanel so that we can implement in my code

thnak you in advance
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please provide me any possible solutions for this post, its very urgent !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic