I am using JTable for the fisrt time. I have a problem in rendering specific JTable cell. Here is what i am doing. I have a window(JFrame class) with a calendar on it. Calendar is implemented using JTable. When the user selects a date and chooses to set reminder another window(Reminder class) opens to set reminder. After he types in his reminder note and presses "OK" i want that particular date to be of some color. I am passing reference of the Jtable to the reminder window and the below code is what i am doing in the Reminder class to set the color for that cell but it is not workin out.
Here is the code:-
This is how i am installing the custom cell renderer in the Reminder class:-
MyCellRenderer renderer = new MyCellRenderer();