Hi everyone,
I'm using B4J for the first time and im struggling a lot.
I have to implement a programm for traffic lights based on a tcp/ip connection.
I managed to do the connection thing.
Now I want to program the traffic light. I want to use a simple timer.
This is what i've got so far:
dim Timer as Timer
.
.
.
Sub Ampel
Label1.style="-fx-background-color: green"
Timer.Initialize("Timer1",3000)
Timer.Initialize("Timer2",1000)
Timer.Enabled = True
End Sub
Sub Timer1_tick
Label1.style="-fx-background-color: red"
Log("test")
End Sub
It works untill i set the color of my label to green. The action from the timer1_tick never starts.
Why? :/
Thank you very much for your help!