Need to call repaint() in each of the setXXX() methods after marking

ourselves dirty.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@845 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
shaper
2002-09-24 01:31:39 +00:00
parent b3961924e3
commit 770d50c363
@@ -1,5 +1,5 @@
// //
// $Id: MultiLineLabel.java,v 1.3 2002/09/23 21:19:06 shaper Exp $ // $Id: MultiLineLabel.java,v 1.4 2002/09/24 01:31:39 shaper Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2002 Walter Korman // Copyright (C) 2002 Walter Korman
@@ -86,6 +86,7 @@ public class MultiLineLabel extends JComponent
{ {
_antialiased = antialiased; _antialiased = antialiased;
_dirty = true; _dirty = true;
repaint();
} }
/** /**
@@ -95,6 +96,7 @@ public class MultiLineLabel extends JComponent
{ {
_label.setText(text); _label.setText(text);
_dirty = true; _dirty = true;
repaint();
} }
/** /**
@@ -104,6 +106,7 @@ public class MultiLineLabel extends JComponent
{ {
_label.setAlternateColor(color); _label.setAlternateColor(color);
_dirty = true; _dirty = true;
repaint();
} }
/** /**
@@ -113,6 +116,7 @@ public class MultiLineLabel extends JComponent
{ {
_label.setAlignment(align); _label.setAlignment(align);
_dirty = true; _dirty = true;
repaint();
} }
/** /**
@@ -122,6 +126,7 @@ public class MultiLineLabel extends JComponent
{ {
_offalign = align; _offalign = align;
_dirty = true; _dirty = true;
repaint();
} }
/** /**
@@ -131,6 +136,7 @@ public class MultiLineLabel extends JComponent
{ {
_label.setStyle(style); _label.setStyle(style);
_dirty = true; _dirty = true;
repaint();
} }
// documentation inherited // documentation inherited