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


Groups > comp.lang.java.programmer > #18737

Re: Sort a jtable within code

Newsgroups comp.lang.java.programmer
Date 2012-09-13 07:53 -0700
References <114c9b7c-7ed8-4f59-aa46-c7480a677be7@googlegroups.com> <nospam-03FC5A.21124012092012@news.aioe.org> <f8e3b99f-0790-4d51-a25d-fef63576a936@googlegroups.com> <9dbcfe66-1325-4de2-96d4-649331ceccba@googlegroups.com>
Message-ID <f02ef12b-6c41-4e29-aa81-4e92a52fc068@googlegroups.com> (permalink)
Subject Re: Sort a jtable within code
From clusardi2k@aol.com

Show all headers | View raw


On Thursday, September 13, 2012 1:59:01 AM UTC-4, (unknown) wrote:
> I've solved this problem. Do you want the details.

http://www.java.net/node/698343

RowSorter sorter = getRowSorter();
List sortKeys = new ArrayList();
sortKeys.add(new RowSorter.SortKey(0, SortOrder.ASCENDING));
sorter.setSortKeys(sortKeys);

Thanks,

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Sort a jtable within code clusardi2k@aol.com - 2012-09-12 06:25 -0700
  Re: Sort a jtable within code Martin Gregorie <martin@address-in-sig.invalid> - 2012-09-12 19:39 +0000
  Re: Sort a jtable within code Arne Vajhøj <arne@vajhoej.dk> - 2012-09-12 20:48 -0400
  Re: Sort a jtable within code "John B. Matthews" <nospam@nospam.invalid> - 2012-09-12 21:12 -0400
    Re: Sort a jtable within code Lew <lewbloch@gmail.com> - 2012-09-12 22:51 -0700
      Re: Sort a jtable within code clusardi2k@aol.com - 2012-09-12 22:58 -0700
        Re: Sort a jtable within code clusardi2k@aol.com - 2012-09-13 07:53 -0700
      Re: Sort a jtable within code "John B. Matthews" <nospam@nospam.invalid> - 2012-09-13 23:58 -0400

csiph-web