Hi All, I am having a unique requirement in JTable. I am using JTable for the first time. So I dont know what things can be done with JTable. My requirement is, I want to divide each cell/column in 2 cells...is it possible with JTable ? what should be done for doing so, if anybody has any idea, please let me know, i will be greatful to u. Thanks in advance. MMJ
Have you ever considered that it might actually be easier to simply combine the header cells from 2 columns into 1 cell. That way you could just leave the rest of your table alone and only the top row(your headers) would have to be special case. That said, since I haven't used JTable directly(I'm using one that comes in a commercial package that makes this kind of stuff easier), I don't know how to suggest you do this. Maybe someone else can give you some pointers.
Hi, Thanks Nathan ! I have changed my displayed name...is it according to the policies now ? And Chris Thanks for the suggestions!!! combining header would be better option i think. But could anyone tell me more about how to combine 2 or more header cells in JTable ?? Thanks in advance.
Hi Meena, Have you seen these Web sites: http://www2.gol.com/users/tame/swing/examples/SwingExamples.html http://www.codeguru.com/java http://www.rgagnon.com/howto.html I think you will find relevant code examples there. Hope it helps. Good Luck, Avi.