 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Filipe Martins Guest
|
Posted: Tue Dec 28, 2004 11:22 pm Post subject: Newbie: Is there a way to stop JTable columns from moving? |
|
|
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
|
Posted: Tue Dec 28, 2004 11:46 pm Post subject: Re: Newbie: Is there a way to stop JTable columns from movin |
|
|
| 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 |
|
 |
|
|
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
|
|