title: java swing - disable a particular row in a jtable
body: <p>I have an instance of <code>JTable</code> in my java swing application. I want to disable some rows in the table based on conditions. In fact, I want some rows can not be selected when user tries to select them. Also their color should be gray. I found some similar question in stackoverflow, but none of them has a good answer. For example <a href="https://stackoverflow.com/questions/11319404/disable-particular-rows-of-a-jtable">this question</a>. Can anyone help me to implements this feature in the jtable?</p>