• Post Reply Bookmark Topic Watch Topic
  • New Topic

A special effect on JTable!

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like the Win Excel, when content in a cell is too long,then start a new line.While you adjust the width of the cell,then maybe the content display in one line.I expect I expressed the problem clearly.
It's indeed a great challange!
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can this problem be resolved using Swing,or it's a meaningless thing?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
letter french,

Welcome to Javaranch! We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name to meet these requirements. You can change your display name by clicking here

Thanks for your cooporation.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can acheive what you want with a custom cell renderer.

See here for more details.
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is my display name OK?
Thanks!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Loius Wan:
Is my display name OK?
Thanks!


Hey, good to go. Thanks!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!