예제 #1
0
파일: Apps.java 프로젝트: dpharris/JMRI
 protected void buildLine(ConnectionConfig conn, JLabel cs, JPanel pane) {
   if (conn.name().equals(JmrixConfigPane.NONE)) {
     cs.setText(" ");
     return;
   }
   ConnectionStatus.instance().addConnection(conn.name(), conn.getInfo());
   cs.setFont(pane.getFont());
   updateLine(conn, cs);
   pane.add(cs);
 }
예제 #2
0
파일: Apps.java 프로젝트: dpharris/JMRI
  @Override
  public void propertyChange(PropertyChangeEvent ev) {
    if (log.isDebugEnabled()) {
      log.debug("property change: comm port status update");
    }
    if (connection[0] != null) {
      updateLine(connection[0], cs4);
    }

    if (connection[1] != null) {
      updateLine(connection[1], cs5);
    }

    if (connection[2] != null) {
      updateLine(connection[2], cs6);
    }

    if (connection[3] != null) {
      updateLine(connection[3], cs7);
    }
  }