Added getText().

git-svn-id: https://samskivert.googlecode.com/svn/trunk@647 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
shaper
2002-03-11 22:07:00 +00:00
parent 5ca8e9312f
commit 6ab5b42ed2
@@ -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