private void showConfigInfo (StringBuffer buf)
    {
	try {
	    Configuration	config = dev.getConfiguration ();
	    String		tmp = config.getConfiguration (0);
	    int			value;
	    
	    buf.append ("<b>");
	    if (info.getNumConfigurations () != 1)
		buf.append ("Current ");
	    buf.append ("Configuration</b><br>\n");
	    if (tmp != null) {
		buf.append ("Description: ");
		buf.append ("<em>");
		buf.append (tmp);
		buf.append ("</em><br>\n");
	    }

	    value = config.getAttributes ();
	    buf.append ("Uses ");
	    if ((value & config.ATTR_SELF_POWERED) != 0)
		buf.append ("own power and ");
	    buf.append (2 * config.getMaxPower ());
	    buf.append (" mA. of bus power<br>\n");
	    if ((value & config.ATTR_REMOTE_WAKEUP) != 0)
		buf.append ("Can support remote wakeup.<br>\n");

	    buf.append ("<br>\n");

	    // XXX actually want to show each of the next
	    // descriptors in order ... can see the type of
	    // the next descriptor, mention it if it's not
	    // going to be shown otherwise.

	    showIfInfo (buf, config);

	} catch (IOException e) {
	    buf.append ("Current configuration unavailable:\n<em>");
	    buf.append (e.getMessage ());
	    buf.append ("</em>\n");
	}
    }