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()); }