Article View: borland.public.jbuilder.java.swing
Article #614Prevent user from moving jtable columns
From: Richard M. Ulrich
Date: Mon, 21 Mar 2005 02:40
Date: Mon, 21 Mar 2005 02:40
12 lines
1346 bytes
1346 bytes
Hello, I have a JTable embedded in a JScrollPane, and just realized that the user can drag columns to change their ordering. This would be a Bad Thing to happen, but I don't see how to disable the feature. I've tried setColumnSelectionAllowed(false) thinking if they can't select a column they can't move it, but that didn't work. What's the secret to making sure the columns are not rearranged by the user? Thanks, Richard
Technical Details
Message-ID:
<423e3416$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,67bba886ebc6c148,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Richard M. Ulrich" <RichardU@UlrichAssociates.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Prevent user from moving jtable columns Date: Sun, 20 Mar 2005 21:40:49 -0500 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 12.101.9.226 Message-ID: <423e3416$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111372822 12.101.9.226 (20 Mar 2005 18:40:22 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail