It seems that transparent backgrounds are not allowed in Java 7 when the windows are decorated. When executing the game of life example in Java 7, I get exception:
Exception in thread "main" java.awt.IllegalComponentStateException: The frame is decorated
at java.awt.Frame.setBackground(Frame.java:986)
at com.signalcollect.javaapi.examples.gameoflife.PixelMap.(PixelMap.java:24)
at com.signalcollect.javaapi.examples.gameoflife.GameOfLife.(GameOfLife.java:50)
at com.signalcollect.javaapi.examples.gameoflife.GameOfLife.main(GameOfLife.java:215)
This is fixed if we change line 24 in PixelMap.java from
window.setBackground(new Color(140, 152, 181, 10));
to
window.setBackground(new Color(140, 152, 181, 255));
It seems that transparent backgrounds are not allowed in Java 7 when the windows are decorated. When executing the game of life example in Java 7, I get exception:
Exception in thread "main" java.awt.IllegalComponentStateException: The frame is decorated
at java.awt.Frame.setBackground(Frame.java:986)
at com.signalcollect.javaapi.examples.gameoflife.PixelMap.(PixelMap.java:24)
at com.signalcollect.javaapi.examples.gameoflife.GameOfLife.(GameOfLife.java:50)
at com.signalcollect.javaapi.examples.gameoflife.GameOfLife.main(GameOfLife.java:215)
This is fixed if we change line 24 in PixelMap.java from
window.setBackground(new Color(140, 152, 181, 10));
to
window.setBackground(new Color(140, 152, 181, 255));