title: Netbeans:  How do I add a valueChanged listener to a JTable from the "design" GUI builder?
body: <p>I right clicked the JTable and inserted some code into "post listeners code" in an awful kludge.</p>
  
  <p>I don't see an option to add </p>
  
  <pre><code>table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent evt) {
  </code></pre>
  
  <p>to "events" in the "design" view for the JTable.  I'm sure there's a way to add a valueChanged(ListSelectionEvent evt) from design view, but how?</p>
  
  <p>maybe it's a <a href="http://netbeans.org/bugzilla/show_bug.cgi?id=8089" rel="nofollow">bug</a>?</p>
  
  <blockquote>
    <p>Row selection change events are produced by ListSelectionModel of
    JTable, not by JTable itself - so the event cannot be presented in
    Component Inspector (as event of JTable). Handling this event must be
    done manually, e.g. like:</p>
  </blockquote>
  
  <pre><code>jTable1.getSelectionModel().addListSelectionListener(
      new javax.swing.event.ListSelectionListener() {
          public void valueChanged(ListSelectionEvent evt) {
              customRowSelectionEventHandler(evt);
          }
      }
  );
  </code></pre>
  
  <p>Although maybe there's a way to get the ListSelectionModel for a JTable outside of the "blue", "managed," code?</p>