• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question on Jtables

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Can anybody tell me ..how can i display data in table if it has subheadings in it. For example

//--------------------customar.dat--------------
ID Name ph.no
Florida(45/6,Thomasvile-09)

231 Sam 55398444
534 Hone 55346674
Texas(332/3 ,Downtown-22)
122 Raseen 23454464
544 Plank 45223665
Indiana(44/2, Indianapolis-88)
53 ush 65322423
22 villy 65364546

//-----------------------------------

I have the above output file. i have to convert it to table format.
i able to generate the table ...but don't know how to put subheadings in it.please help me in this.
thanks,
Karan
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the Swing / JFC / AWT forum...
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Karan,
I believe you are asking, "how to display multi-line text in a 'JTable' cell?"
If so, then, for your information, here is one example, and here is another.
Good Luck,
Avi.
 
I don't always make ads but when I do they're tiny
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic