Click here to Skip to main content
15,882,152 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi guys,

Nested GridView [No JavaScripts][^]

I am a newbie to java and swings. I wanted to develop the same in the link provided above with java jtables. I am not able to figure it out and if possible can any help me out giving a sample code.

i tried only populating a table and with the help of mouse listener i have populated the related data table on a JDialog.

After that I am Struck.

Thanks in advance..
Posted

1 solution

That is possible by add a Panel / some component as cell content containing another Table.

I have also often seen a Jpanel with a GridLayout in the cell, which makes it easier to handle.

You will need a customCellRenderer though to make it run.

How to use Tables[^] @ the Java tutorials
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900