Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

Null point in netbeans gui

 
Ivan Kesic
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

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.

Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dude,
I doubt if anybody is going to go through ~500 lines of code to debug it for you.

What you need to do is IsolateTheProblem and then post the sscce if it still doesn't work.
 
Ivan Kesic
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ok ill do that, than put a new post...
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ivan, you weren't really meant to have created a new thread. You could have continued in this thread. I will close this one however since the other thread has more and better replies.
    Bookmark Topic Watch Topic
  • New Topic