![]() ![]() ![]() it only get value through getValueAt () when the cell editing is disable. 0.00/5 (No votes) See more: Java I have a editable table, In cell of table when i put value then it not get value through the method getValueAt () when the cell editing still on. Overriding getTableCellRendererComponent() as shown below causes odd days to be disabled. Disable Editing on JTable cell in runtime. ![]() As noted in Concepts: Editors and Renderers, "a single cell renderer is generally used to draw all of the cells that contain the same type of data." You'll need to maintain the enabled state in your table model.Īddendum: As a concrete example, the data model in this example is a simple array of Date instances. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |