diff --git a/projects/samskivert/src/java/com/samskivert/swing/Label.java b/projects/samskivert/src/java/com/samskivert/swing/Label.java index 86a918f9..2a3cec3b 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/Label.java +++ b/projects/samskivert/src/java/com/samskivert/swing/Label.java @@ -276,6 +276,14 @@ public class Label implements SwingConstants, LabelStyleConstants return _size; } + /** + * Returns true if this label has been laid out, false if not. + */ + public boolean isLaidOut () + { + return (_layouts != null); + } + /** * Calls {@link #layout(Graphics2D)} with the graphics context for the * given component.