Hi Kari,
From your post,
private Main hovedvindu;
public Ticker() {
Main hovedvindu = new Main();
t.start();
}
looks like you have had your "hovedvindu" variable shadowed. What you have instantiated in your constructor is a constructor-local variable named "hovedvindu" and not the private instance variable "hovedvindu". Instead of declaring another "hovedvindu" in your constructor, try using
this.hovedvindu = new Main();
instead of
Main hovedvindu = new Main();
Hope this helps.
Regards,
Lhorenz