title: Sorting JTable programmatically
body: <p>Is there a way to sort a JTable programmatically? </p>
  
  <p>I have my JTable's sort working (with setRowSorter) so that when the user presses any of the columns, the table gets sorted. </p>
  
  <p>I know, SWingX JXTable would probably work, but I'd rather not go through the hassle because everything else is pretty much working now and I don't know how well NetBeans' visual editor handles JXTable etc.</p>
  
  <p><strong>EDIT:</strong> <em>The selected answer is referring to my (now removed) statement that the answer from Sun's pages didn't work for me. That was just an environment issue caused by my ignorance.</em></p>