Re: Problem faced while using TinyLnF
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jun 2008 13:15:52 GMT
On Tue, 24 Jun 2008 02:28:57 -0700 (PDT), Chanchal
<chanchal.jacob@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :
Also, is there any way to use some other images in place of those up
or down arrows?
TableRowSorter is only available in JDK 1.6+. Sun provides source for
TableSorter you can cannibalise to sort JTables in earlier JDKs.
TableRowSorter does not sort your model. It creates an auxiliary
sorted index into it.
TableRowSorter by default flips the sort from ascending to descending
and back when the user clicks a column header. The logic to do this
is handled elsewhere, not TableRowSorter. I have not yet found the
code. However, it does not display any indicators as to the current
column or whether it is sorted ascending or descending. I have not yet
figured out a clean way to implement the indicators that can?t
possibly get out of sync.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- Problem faced while using TinyLnF
- From: Chanchal
- Problem faced while using TinyLnF
- Prev by Date: Re: cobbling a ComboBox
- Next by Date: Re: cobbling a ComboBox
- Previous by thread: Re: Problem faced while using TinyLnF
- Index(es):