• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable - Multiline Header  RSS feed

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to implement multipline header without adding addition characters like \n in column headers ?
This is from SUN example:
new Object[]{"1st\nalpha","2nd\nbeta","3rd\ngamma"});
This is like hardcoding column names.
 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dilip
Try referring to this link. It provides excellent examples for JTables including Multiline headers and also example code making it simpler to understand the concepts.
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
Meghna
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!