🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable, move selected rows using a mouse

#9336
From: Steve Horsley
Date: Mon, 17 Apr 2000 00:00
24 lines
1237 bytes
If you drop a JTable into a JScrollPane so that you can see the 
column headers, these headers can be dragged around to re-order the
colunms by default - no coding required. I'm not sure how you could
STOP this from happening.

Steve.

Werner Moschina wrote:
> 
> Hi there,
> 
> I want to move selected rows (single intervall) in an JTable using the
> mouse.
> When I click the selected rows, the previous selection is cleared.
> 
> Does anybody has a hint for solving the problem?
> 
> To detect the mouse movement I want to use the "MouseMotionListener".
> 
> Regards,
> 
> Werner
> 
> P.S. System: JBuilder 3 Foundation, Windows NT4
Technical Details
Message-ID: <38FABF39.9BCA4B7B@cwcom.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38F6E0DB.B6552FDE@stutensee.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,f0e52445185f02d8
X-Google-Attributes: gid111d45,public
From: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: JTable, move selected rows using a mouse
Date: 2000/04/17
Message-ID: <38FABF39.9BCA4B7B@cwcom.co.uk>
X-Deja-AN: 612133407
Content-Transfer-Encoding: 7bit
References: <38F6E0DB.B6552FDE@stutensee.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 17 Apr 2000 00:29:16 -0800, 194.200.13.1
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing