Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java GUI > Re: disable the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 9615 of 9959
Post > Topic >>

Re: disable the sorting function of the header

by malpropio <dimitri.charles@[EMAIL PROTECTED] > May 21, 2008 at 08:06 AM

I found a diff route to that, I created my own TableRowSorter and I
override the isSortable(int column) function where I always return
false, so the filtering still works but the sorting is disabled.


On Mar 26, 4:45=A0pm, RedGrittyBrick <RedGrittyBr...@[EMAIL PROTECTED]
>
wrote:
> malpropio wrote:
> > I'm using filtering on a jtable so I can't disable rowSorting
> > altogether but I wont to disable the rowSorting feature thats in the
> > jtableHeader, does anyone have any idea how the is done ??
> > thank you
>
> By not using
> =A0 =A0table.setAutoCreateRowSorter(true);
>
> and doing the filtering in an AbstractTableModel sub-class instead?
>
> --
> RGB
 




 3 Posts in Topic:
disable the sorting function of the header
malpropio <dimitri.cha  2008-03-26 08:08:41 
Re: disable the sorting function of the header
RedGrittyBrick <RedGri  2008-03-26 20:45:55 
Re: disable the sorting function of the header
malpropio <dimitri.cha  2008-05-21 08:06:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 14:23:45 CDT 2008.