title: ssh -X (X11 forwarding) java swing application has slow drop down lists
body: <p>Symptoms:</p>
  
  <ul>
  <li>click on a drop down list, it takes ~14 seconds for the list of all options under it to display</li>
  <li>all other UI elements are interactive; there's no visible delay</li>
  <li>takes only 14ms to ping the host I am sshing into</li>
  </ul>
  
  <p>How can I speed the the responsiveness of the drop down lists?</p>
  
  <p>Commands that I ran:</p>
  
  <pre><code>ping &lt;destination host&gt;
  PING &lt;destination host&gt; (&lt;destination ip&gt;) 56(84) bytes of data.
  64 bytes from &lt;destination host&gt; (&lt;destination ip&gt;): icmp_seq=1 ttl=50 time=16.4 ms
  
  
  ssh -X &lt;destination host&gt;
  java -cp &lt;class path stuff&gt; &lt;class with main method that initializes the UI&gt;
  </code></pre>
  
  <p>Client Machine Information:</p>
  
  <pre><code>ssh -V
  OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014
  cat /etc/*-release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=14.04
  DISTRIB_CODENAME=trusty
  DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
  </code></pre>
  
  <p>Server Machine Information:</p>
  
  <pre><code>sshd -V
  sshd: illegal option -- V
  OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
  usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file]
          [-f config_file] [-g login_grace_time] [-h host_key_file]
          [-k key_gen_time] [-o option] [-p port] [-u len]
  
  java -version
  java version "1.8.0_25"
  Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
  Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
  cat /etc/*-release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=12.04
  DISTRIB_CODENAME=precise
  DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
  </code></pre>