final int avail = firstAvail();
// if (text != null && values != null) text = Format.substitute(text,
// values);
InfoPanel infoPanel = new InfoPanel(caption, text);
infoPanel.addPopupListener(new PopupListener() {
public void onPopupClosed(PopupPanel sender, boolean autoClosed) {
SLOTS.set(avail, null);
}
});
SLOTS.add(avail, infoPanel);