From 97646640777c0fa209763aa305ecd0de6a38c845 Mon Sep 17 00:00:00 2001 From: Zocker1999NET Date: Sun, 3 Jul 2016 20:47:36 +0200 Subject: [PATCH] Label Debug Automatische Transparenz bei leerem Text --- Label.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Label.java b/Label.java index b572eb6..1dfd81b 100644 --- a/Label.java +++ b/Label.java @@ -91,7 +91,9 @@ public class Label extends GUI_Interface { public void redraw() { GreenfootImage tI = new GreenfootImage(text,textSize,foreC,backC); if(text == "") { - tI = new GreenfootImage(0,0); + tI = new GreenfootImage(1,1); + tI.setColor(new Color(0,0,0,0)); + tI.fill(); } if(autoSize) { sx = tI.getWidth();