/** Instantiates a treerow with a treecel holding the given label. * @since 5.0.8 */ public Treerow(String label) { setLabel(label); }
/** Sets the label of the {@link Treecell} it contains. * * <p>If treerow and treecell are not created, we automatically create it. * * <p>Notice that this method will create a treerow and treecell automatically * if they don't exist. Thus, you cannot attach a treerow to it again if * set an image or a label. */ public void setLabel(String label) { autoTreerow().setLabel(label); }