Edit 3 « JTable « Java Swing Q&A





1. How to disable/enable the cells for editing column wise in JTable in java?    forums.oracle.com

Hi All, Can any one tell me how to disable the cells for editing by column wise in JTable? Here depending upon the radio button selected, I need 2 disable some columns for editing and enable some columns for editing? how can I do tat using JAVA? Any sample code is of great help to me. Thanks in Advance

2. How to know a JTable is editing?    forums.oracle.com

3. I get unwanted duplicate lines when editing the data content of my JTable    forums.oracle.com

I have created an editable JTable (filled with data from an SQL) with a modified instance of AbstractDataModel. I have a phenomenon that I cannot explain nor fix: each time I edit a data field in the JTable and press ENTER or leave the field, the edited line is duplicated. The extra content is not sent to my SQL (if I ...

4. editable JComboBox in a JTable    forums.oracle.com

Hello! Yesterday I posted a problem, solved it and there's another one, refering the same theme. So it's about a editable JComboBox with autocomplete function. The combo is a JTables cellEditors component. So it's in a table. So when the user presses the enter key to select an item from the JComboBox drop down menu, I can't get which item is ...

5. editable JComboBox in a JTable    forums.oracle.com

Hello everyone! I have a JTable. In the first column I have editable JComboBoxes. Actually I made my own class wich extends the JComboBox and it has the autocomplete function. The problem is, that the autocomplete doesn't work well in the JTable. If I add my JComboBox on a frame, it does work quite fine. The problem starts with JComboBox functions ...

6. There is option to disable JTable edit and changing colums?    forums.oracle.com

want to Disable edit of specifec Column.. thats all... no all of them by SetEnabled Once person suggest to use setEnabled(...) which is wrong for your situation. Everybody else has told you to override a method of the table. So read the other answers and try them. As far as that goes why don't you read the JTable API. In there ...