Added getText().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@647 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -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;
|
package com.samskivert.swing;
|
||||||
|
|
||||||
@@ -54,6 +54,14 @@ public class Label implements SwingConstants
|
|||||||
setText(text);
|
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
|
* Sets the text to be displayed by this label. This should be
|
||||||
* followed eventually by a call to {@link #layout} and ultimately
|
* followed eventually by a call to {@link #layout} and ultimately
|
||||||
|
|||||||
Reference in New Issue
Block a user