From a83600281d9add51968ed8e948e8ff8da94d6c9c Mon Sep 17 00:00:00 2001 From: ollo Date: Tue, 2 Jan 2018 15:06:18 +0100 Subject: [PATCH] Described the open points --- simulation/src/de/c3ma/ollo/mockup/ui/WS2812Layout.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/simulation/src/de/c3ma/ollo/mockup/ui/WS2812Layout.java b/simulation/src/de/c3ma/ollo/mockup/ui/WS2812Layout.java index 8737040..17e7636 100644 --- a/simulation/src/de/c3ma/ollo/mockup/ui/WS2812Layout.java +++ b/simulation/src/de/c3ma/ollo/mockup/ui/WS2812Layout.java @@ -154,13 +154,14 @@ public class WS2812Layout extends JFrame { super(""+character); setFont(new Font("Dialog", Font.BOLD, 24)); setHorizontalAlignment(CENTER); + //FIXME: Background color is not updated: this.setBackground(Color.BLACK); } public void setColor(int red, int green, int blue) { this.setForeground(new Color(red, green, blue)); - this.update(this.getGraphics()); - //this.repaint(); + //FIXME changing the color is not working + this.repaint(); System.out.println( this.toString()); }