Hi all,
Im trying to sort a jTable on column click, but when I insert the mouse click event; my panel is not updating with sorted table.
I used sorting algo in a separated class and code is working properly if I remove the header click event and uncomment other stuffs in bottom
thanks in advance !
SCJP 1.4 71%, SCWCD 1.5 84%, SCBCD 90%, SCMAD 98%
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
1
> my panel is not updating with sorted table.
actually, it is - you can't see it because 'panel' is a FlowLayout.
run the program, click a header, now drag the frame real wide (so there's enough space to show the 2 tables)
you can either
change 'panel' to a more suitable LayoutManager, or better
change the model of the visible table (instead of creating another table)
Hewa Naimanage Sumedha Amalka
Greenhorn
Joined: Oct 31, 2006
Posts: 19
posted
0
It worked... thanks Michael...
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.