• 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

JTable customization

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a question about JTable. I want to create a JTable in this format:
--------------------------------------------------------------------
Category Information | More Info |
--------------------------------------------------------------------
chkbox1 : Category 1
chkbox1a: Category 1 Info1 | <note1> |
chkbox1b: Category 1 Info2 | <note2> |
chkbox1c: Category 1 Info3 | <note3> |
chkbox2: Category 2
chkbox2a: Category 1 Info1 | <note4> |
chkbox1b: Category 1 Info2 | <note5> |
chkbox1c: Category 1 Info3 | <note6> |
--------------------------------------------------------------------

Can someone tell me how to create those line breaks in the table ( for writing Category 1, Category 2 headings) ?

Thanks,
Preethi
 
Greenhorn
Posts: 7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Preethi,

I am unable to understand your requirement. If you want a JTable in a format please can you upload a pictorial representation of the table and I might be able to help you with that.

Best regards,
Aadi
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. There's a separate forum for Swing / AWT / SWT / JFace
2. Your description appears to be of a JTreeTable (not a part of hte standard API -- search the net).
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Darryl Burke wrote:1. There's a separate forum for Swing / AWT / SWT / JFace


Indeed. Moving this thread there.
 
D Preethi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Adi, Rob and Darryl.

Let me rephrase my question this way - is it possible to merge 2 or more JTables to one JTable? If so, do you have any examples of how to achieve this?

- Preethi



 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Scroll down to the end of the page for Tree table http://download.oracle.com/javase/tutorial/uiswing/components/table.html
 
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic