I have a problem with NetBeans gui class and variables from class that i made. Here is the whole code.
In class UltimateWeatherView i have method prikazi()! It should set label text to be text from string temperatura from class Kosutnjak and refresh it every 20 seconds as it refreshes string temperature(thred is sleeping), but every time in class UltimateWeatherView method getTemperatura returns null. Why is this? I can put all methods from Kosutnjak in class UltimateWeatherView and then i think it would work, but i dont want to. I want to make label kTemp take value from temperatura and display it every 20 seconds as thread wake up.