I have a JTable with two columns: a key name and the value. In the value columns are multiple data types allowed like this image:

So in column 1 I might have a boolean in row 1 and a string in row 2. But the method getColumnClass(...) only allows me to set a data type for the complete column.
Is there any way to set column-row specific data types?
Greetings,
mythbu
You cannot have two data types to the same column. But for your case, my suggestion is use rendering.
Read about Editors and Renderers.
Define the column data type as a component class which contains a
JPanel.Render the column. Your Renderer class returns a Panel to the column. It should have a
constraint, basing on that you should add components to the Panel and return the Panel.This example shows how rendering can be used in these kind of cases.
// Output:
The first row is a panel with
JTextField.Similarly 2nd, 3rd rows has
JCheckBoxandJButton.4th row has a
JLabelwith text.P.S: This is just a try. Even I haven’t done this before. Please correct me if I am wrong.