title: How to wire one pane to another
body: <p>How do I wire output to <code>paneWithList</code>?</p>
  
  <p><code>PaneWithList</code> has a listener on its <code>JList</code> so that the selected row is output to the console.  How can I direct that output to the <code>JTextPane</code> on output?</p>
  
  <p>Could <code>PaneWithList</code> fire an event which <code>Main</code> picks up?  Would <a href="http://docs.oracle.com/javase/6/docs/api/java/beans/PropertyChangeSupport.html" rel="nofollow noreferrer">PropertyChangeSupport</a> suffice? </p>
  
  <p>Main.java:</p>
  
  <pre><code>package dur.bounceme.net;
  
  import javax.swing.JTabbedPane;
  
  public class Main {
  
      private static JTabbedPane tabs;
      private static PaneWithList paneWithList;
      private static PaneWithTable paneWithTable;
      private static Output output;
  
      public static void main(String[] args) {
          tabs = new javax.swing.JTabbedPane();
          paneWithList = new PaneWithList();
          paneWithTable = new PaneWithTable();
          tabs.addTab("list", paneWithList);
          tabs.addTab("table", paneWithTable);
          tabs.addTab("output", output);
      }
  }
  </code></pre>