How to implement dynamic jtable or jfreechart?

How to set chart or table in jframe which will dynamic means every column is changing their color according to situation. For example, when room no. 23 is booked then those color would be blue else red.