diff --git a/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java b/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java index 3716a6c2..86e9c811 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java +++ b/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java @@ -1,5 +1,5 @@ // -// $Id: CollapsibleList.java,v 1.2 2002/04/23 17:05:47 shaper Exp $ +// $Id: CollapsibleList.java,v 1.3 2002/04/27 00:23:49 shaper Exp $ package com.samskivert.swing; @@ -64,6 +64,15 @@ public class CollapsibleList extends JPanel return getSectionCount()-1; } + /** + * Returns the label object associated with the title of the specified + * section. + */ + public JLabel getSectionLabel (int index) + { + return (JLabel)getComponent(index*2); + } + /** * Returns the list object associated with the specified section. */