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