From 45b37bb514d369efaedf313f3bd4e92f6ed14a60 Mon Sep 17 00:00:00 2001 From: Zocker1999NET Date: Sun, 3 Jul 2016 20:56:58 +0200 Subject: [PATCH] =?UTF-8?q?Button=20Debug=20Renderer=20*=20Hintergrundfarb?= =?UTF-8?q?e=20vergessen=20*=20St=C3=A4rke=20des=20abgerundeten=20Rechteck?= =?UTF-8?q?s=20erh=C3=B6ht=20*=20Transparenter=20Hintergrund=20eingerichte?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Button.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Button.java b/Button.java index 2f1afb8..41c45ee 100644 --- a/Button.java +++ b/Button.java @@ -151,8 +151,11 @@ public class Button extends GUI_Interface { } GreenfootImage all = new GreenfootImage(sx,sy); Color trans = new Color(0,0,0,0); + all.setColor(trans); + all.fill(); Graphics2D g = all.getAwtImage().createGraphics(); - g.fillRoundRect(0,0,sx,sy,6,6); + g.setColor(backC); + g.fillRoundRect(0,0,sx,sy,12,12); all.drawImage(tI,(sx-tI.getWidth())/2,(sy-tI.getHeight())/2); setImage(all); }