/** * Sets the tiptext to display. * * @param index the index of the component * @param text the tiptext to use, null to turn off * @param check whether to set the tiptext for the checkbox * @param label whether to set the tiptext for the label * @param comp whether to set the tiptext for the component (must be {@link JComponent}) */ public void setToolTipText(int index, String text, boolean check, boolean label, boolean comp) { if (m_UseCheckBoxes && check) getCheckBox(index).setToolTipText(text); if (label) getLabel(index).setToolTipText(text); if (comp && (getParameter(index) instanceof JComponent)) ((JComponent) getParameter(index)).setToolTipText(text); }