I have a basic JTable filled with "item number" and the corresponding "color" for that item, and I need to change the color of the cell that contains that name of the color to that actual color, regardless of whether it is selected or not.

This is the code to my JTable:

```
    String[] title = {"Item Number", "Color"};
    String[][] listOfValues = {{"1", "red"}, {"2", "blue"}, {"3", "green"}};

    JTable new_table = new JTable(listOfValues, title);
    JScrollPane table_pane = new JScrollPane(new_table);
    table_pane.setBounds(10, 10, 300, 230);
    frame.getContentPane().add(table_pane);

```

The layout is temporary. This is what the table looks like:

[![enter image description here](https://i.stack.imgur.com/tTxUb.jpg)](https://i.stack.imgur.com/tTxUb.jpg)

So, in this table, the cell containing "red" would be red, the cell containing "blue" would be blue and the cell containing "green" would be green. All other cells remain white like they are.

How would I achieve this?