X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTLabel.java;h=f34a533eb8ffb44c1d2aa9ebefc2a2e925a89a66;hb=217a7710cb059e56d45fc65a717129ccaef9c65c;hp=38c014c26ea256441d37bb2a03c88417c49fd8c1;hpb=3fe82fa71d39d874691dc85e6a77250fd4953b17;p=fanfix.git diff --git a/src/jexer/TLabel.java b/src/jexer/TLabel.java index 38c014c..f34a533 100644 --- a/src/jexer/TLabel.java +++ b/src/jexer/TLabel.java @@ -170,6 +170,17 @@ public class TLabel extends TWidget { // TWidget ---------------------------------------------------------------- // ------------------------------------------------------------------------ + /** + * Override TWidget's height: we can only set height at construction + * time. + * + * @param height new widget height (ignored) + */ + @Override + public void setHeight(final int height) { + // Do nothing + } + /** * Draw a static label. */ @@ -246,7 +257,7 @@ public class TLabel extends TWidget { */ public void dispatch() { if (action != null) { - action.DO(); + action.DO(this); } }