import java.awt.Color
import javax.swing.JPanel
import com.github.oetzi.echo.Behaviour
import com.github.oetzi.echo.Witness

package display {
	class ColorPanel extends JPanel {
		def setBackground(color : Behaviour[Color]) {
			new Witness(color).each(event => super.setBackground(event))	
		}
	}
}
import java.awt.Color
import javax.swing.JPanel
import com.github.oetzi.echo.Behaviour
import com.github.oetzi.echo.Witness

package display {
	class ColorPanel extends JPanel {
		def setBackground(color : Behaviour[Color]) {
			super.setBackground(color.now)
			new Witness(color).each(event => super.setBackground(event))	
		}
	}
}
Update color example for new Witness implementation
Update color example for new Witness implementation
