diff --git a/projects/samskivert/src/java/com/samskivert/swing/Label.java b/projects/samskivert/src/java/com/samskivert/swing/Label.java index 7afc24b3..9249c659 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/Label.java +++ b/projects/samskivert/src/java/com/samskivert/swing/Label.java @@ -1,5 +1,5 @@ // -// $Id: Label.java,v 1.5 2002/03/03 07:03:20 mdb Exp $ +// $Id: Label.java,v 1.6 2002/03/11 22:07:00 shaper Exp $ package com.samskivert.swing; @@ -54,6 +54,14 @@ public class Label implements SwingConstants setText(text); } + /** + * Returns the text displayed by this label. + */ + public String getText () + { + return _text; + } + /** * Sets the text to be displayed by this label. This should be * followed eventually by a call to {@link #layout} and ultimately