Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2007

Tip: Looking for answers? Try searching our database.

How to prevent change the column order in JTable?

Thread view: 
RC - 27 Jun 2007 21:22 GMT
So I have successfully to prevented JTable
cell editing, resize the column size,
column and row selection.

But I haven't figured out how to prevent
dragging a column from one place to other place.

If you know how to prevent column reordering (dragging)
in JTable, please let me know.

Thank Q very much in advance!
Michael Jung - 27 Jun 2007 21:38 GMT
> So I have successfully to prevented JTable
> cell editing, resize the column size,
[quoted text clipped - 3 lines]
> If you know how to prevent column reordering (dragging)
> in JTable, please let me know.

RTFM: JTableHeader

Michael
Thomas Fritsch - 27 Jun 2007 23:51 GMT
> So I have successfully to prevented JTable
> cell editing, resize the column size,
[quoted text clipped - 7 lines]
>
> Thank Q very much in advance!
Learn to use the API docs! You'll find it at
http://java.sun.com/j2se/1.5.0/docs/api/

Signature

Thomas

Roedy Green - 29 Jun 2007 01:42 GMT
>So I have successfully to prevented JTable
>cell editing, resize the column size,
[quoted text clipped - 7 lines]
>
>Thank Q very much in advance!

JTable is one of the more complicated widgets.  You need to skim all
the docs so you get an idea of what sorts of things you can do.  Then
later when you are doing your design, you build around what you know
is possible.  Only when you get around to writing the piece of
detailed code do you then need to read the API with fine tooth comb.
Then you can forget it.  When you have similar problems, you scour
your existing code base.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.