+ sipUri + " (" + displayName + ").\n",
+ sipUri + nm +" to account #"+ accountId + an+".\n",
    public void run() {        Object[] options = { "Accept", "Decline" };               final JOptionPane optionPane = new JOptionPane(                "Incoming call from "                + sipUri + " (" + displayName + ").\n",                JOptionPane.WARNING_MESSAGE,                JOptionPane.YES_NO_OPTION,                null, options, options[0]);               dialog.setContentPane(optionPane);              optionPane.addPropertyChangeListener(               new PropertyChangeListener() {                   public void propertyChange(PropertyChangeEvent e) {                       String prop = e.getPropertyName();                       if (dialog.isVisible()                         && (e.getSource() == optionPane)                        && (prop.equals(JOptionPane.VALUE_PROPERTY))) {                           dialog.setVisible(false);                       }                   }               });              dialog.pack();       dialog.setVisible(true);              String res = optionPane.getValue().toString();              Call c = new Call(callId, accountId, sipUri, displayName);                     Vector params = new Vector();       params.clear();       params.add(new Integer(callId));       if (res.equalsIgnoreCase("ACCEPT")) {           ImageIcon img = new ImageIcon(gui.cl                   .getResource("gui/resources/gray.gif"));           if (c.name.trim().equalsIgnoreCase("")) {               img.setDescription(sipUri);           } else {               img.setDescription(sipUri + " (" + c.name + ")");           }           gui.calls.add(c);           gui.list2.addElement(img);           gui.execute("core.acceptCall", params);       } else if (res.equalsIgnoreCase("DECLINE")) {           pendingCalls.add(c);           gui.execute("core.endCall", params);       }     }