AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newbie: Is there a way to stop JTable columns from moving?

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Filipe Martins
Guest





PostPosted: Tue Dec 28, 2004 11:22 pm    Post subject: Newbie: Is there a way to stop JTable columns from moving? Reply with quote



Hello.

I'm just beginning with Java. Can you help? Is there something I can
do to make it impossible for the user to mess around with the order of
the columns. It's just that I find it annoying that the columns can be
moved when there's absolutely no use for it!
I've looked in the Java tutorial and in the Java Class Reference and
found nothing about it.

Thanks.
Back to top
Real Gagnon
Guest





PostPosted: Tue Dec 28, 2004 11:46 pm    Post subject: Re: Newbie: Is there a way to stop JTable columns from movin Reply with quote



Quote:
I'm just beginning with Java. Can you help? Is there something I can
do to make it impossible for the user to mess around with the order of
the columns. It's just that I find it annoying that the columns can be
moved when there's absolutely no use for it!

table.getTableHeader().setReorderingAllowed(false);
table.getTableHeader().setResizingAllowed(false);


bye.
--
Real Gagnon from Quebec, Canada
* Looking for Java or PB snippets ? Visit Real's How-to
* http://www.rgagnon.com/howto.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.