if (in) jt.replaceSelection("Port: "+port+" RECV "+length+ " bytes :"); if (!in) jt.replaceSelection("Port: "+port+" XMIT "+length+ " bytes :"); jt.replaceSelection(hexDump(sysex,length)+"\n");
jt.replaceSelection("Port: " + port + (in ? " RECV " : " XMIT ") + length+ " bytes :\n" + hexDump(sysex,length) + "\n");
  void log (int port,boolean in, byte []sysex,int length)  {	 jt.setEditable(true);	 if (in) jt.replaceSelection("Port: "+port+" RECV "+length+ " bytes :");	 if (!in) jt.replaceSelection("Port: "+port+" XMIT "+length+ " bytes :");	 jt.replaceSelection(hexDump(sysex,length)+"\n");	 jt.setEditable(false);  }