🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9447

Re: Sorting a JTable-Object

#9447
From: John P. McGrath
Date: Tue, 21 Mar 2000 00:00
15 lines
903 bytes
On Mon, 20 Mar 2000 11:13:08 +0100, Christoph Meilen wrote:

> Is it possible, to sort the entries of an object from JTable,
> if I click to a Column.Heading ???

There is nothing built-in to do this.

You would need to add a MouseListener to recognize the mouse clicks on 
the table header.  Then, you would have to implement the sorting in the 
TableModel for the JTable.

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.1340f177376e538b989810@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38D5F9B4.1AACE0F6@eurobase.lu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,385304f7dd761433
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: Sorting a JTable-Object
Date: 2000/03/21
Message-ID: <MPG.1340f177376e538b989810@forums.borland.com>
X-Deja-AN: 600311357
References: <38D5F9B4.1AACE0F6@eurobase.lu>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing