Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3330 > unrolled thread

disable the sorting func

Started by"malpropio" <malpropio@THRWHITE.remove-dii-this>
First post2011-04-27 15:44 +0000
Last post2011-04-27 15:45 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  disable the sorting  func "malpropio" <malpropio@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
    Re: disable the sorting "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:44 +0000
      Re: disable the sorting f "malpropio" <malpropio@THRWHITE.remove-dii-this> - 2011-04-27 15:45 +0000

#3330 — disable the sorting func

From"malpropio" <malpropio@THRWHITE.remove-dii-this>
Date2011-04-27 15:44 +0000
Subjectdisable the sorting func
Message-ID<1633dbba-2ac1-45a6-b576-098ce93bfda4@z38g2000hsc.googlegroups.com>
  To: comp.lang.java.gui
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#3331 — Re: disable the sorting

From"RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this>
Date2011-04-27 15:44 +0000
SubjectRe: disable the sorting
Message-ID<ttydnenqR7CWK3fanZ2dnUVZ8selnZ2d@bt.com>
In reply to#3330
  To: comp.lang.java.gui
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
   table.setAutoCreateRowSorter(true);

and doing the filtering in an AbstractTableModel sub-class instead?

-- 
RGB

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3540 — Re: disable the sorting f

From"malpropio" <malpropio@THRWHITE.remove-dii-this>
Date2011-04-27 15:45 +0000
SubjectRe: disable the sorting f
Message-ID<cf2c7ae0-540e-47be-a93b-4090441fbdab@c58g2000hsc.googlegroups.com>
In reply to#3331
  To: comp.lang.java.gui
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...@SpamWeary.foo>
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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web