Forums Register Login

Left most column locking

+Pie Number of slices to send: Send
Can some one tell me how to lock the left most column in JTable ? Thanks
+Pie Number of slices to send: Send
Hi Narayanan,
What do you mean by lock... diallow editing or disallow moving?
If it is disallow editing, you could override the isCellEditable method of your table model in such a way that it returns false only for that column:

Hope I understood your query correctly.
Abhik.
+Pie Number of slices to send: Send
Hi Abhik,
When scrolling table columns to the right, I want to lock the 1st column in the table, so that user can see the first column always, even when they scroll the other columns. Thanks
+Pie Number of slices to send: Send
Hi Narayanan,
It appears that you haven't yet discovered Tamemusa's Swing examples
(Look for the "Fixed Column" example at the bottom of that Web page!)
Hope it helps.
Good Luck,
Avi.
I wasn't selected to go to mars. This tiny ad got in ahead of me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1065 times.
Similar Threads
Left Shift of byte
Table column Heading justification
JTable - Align Column Headers on Left
Text Editor Design Question
Constant Instance Variables vs Inheritance
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:07:03.