public void reset() {
   Road road = edgenode.getRoad();
   if (road != null) {
     roadLink.setText(road.getName());
     roadLink.setEnabled(true);
     nodeLink.setText(road.getOtherNode(edgenode).getName());
     nodeLink.setEnabled(true);
   } else {
     roadLink.setText("null");
     roadLink.setEnabled(false);
     nodeLink.setText("null");
     nodeLink.setEnabled(false);
   }
 }
  public EditEdgeNodePanel(ConfigDialog cd, EdgeNode e) {
    super(cd);

    Label clab = new Label("Connects:");
    clab.setBounds(0, 0, 100, 20);
    add(clab);

    roadLink = new Hyperlink();
    roadLink.addActionListener(this);
    roadLink.setBounds(100, 0, 100, 20);
    add(roadLink);

    Label wlab = new Label("With:");
    wlab.setBounds(0, 20, 100, 20);
    add(wlab);

    nodeLink = new Hyperlink();
    nodeLink.addActionListener(this);
    nodeLink.setBounds(100, 20, 100, 20);
    add(nodeLink);

    setEdgeNode(e);
  }