title: How can I check if a row exists in JTable JAVA?
body: <p>I searched but there are no similar questions.</p>
  
  <p>I have a function with 2 parameters: row_num, value
  Before adding a new value, I need to check to see if that row exists in the JTable or not. If it is not, I will add a null row before adding value.</p>
  
  <p>The problem is I don't know how to check if it exists. I tried <code>table.isCellEditable(row_num, 2)</code> but I'm not sure why it always returns <code>True</code> though the table doesn't contain that row.</p>