agentName = JOptionPane.showInputDialog("Agent name: "); if (agentName == null) { return; } String sLimit = JOptionPane.showInputDialog("Limit (e.g. 200): "); if (sLimit == null) { return; } try { limit = Integer.parseInt(sLimit); } catch (NumberFormatException nfe) { System.err.println("Illegal number: "+sLimit); return; } String sIsDown = JOptionPane.showInputDialog("TraceChildren (true/false): "); if (sIsDown == null) { return; } isDown = (!("false".equalsIgnoreCase(sIsDown)));   makeThreadGraph(UID, agentName, isDown, limit);
  private void makeThreadGraph() {    String UID = JOptionPane.showInputDialog("Plan Object UID: ");     if (UID != null) {      String agentName = JOptionPane.showInputDialog("Agent name: ");      if (agentName != null)	makeThreadGraph(UID, agentName, true); // default to down    }  }