Added setConstraints().

git-svn-id: https://samskivert.googlecode.com/svn/trunk@858 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
shaper
2002-10-04 21:28:23 +00:00
parent d947409983
commit db316be504
@@ -1,5 +1,5 @@
//
// $Id: MultiLineLabel.java,v 1.5 2002/09/24 06:47:38 mdb Exp $
// $Id: MultiLineLabel.java,v 1.6 2002/10/04 21:28:23 shaper Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2002 Walter Korman
@@ -89,6 +89,16 @@ public class MultiLineLabel extends JComponent
repaint();
}
/**
* Sets the constraints to be used when laying out the label.
*/
public void setConstraints (int constrain)
{
_constrain = constrain;
_dirty = true;
repaint();
}
/**
* Sets the text displayed by this label.
*/