Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable customization  RSS feed

 
D Preethi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • 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
 
Aditya Yagnik
Greenhorn
Posts: 7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • 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).
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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



 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!