aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Null point in netbeans gui Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

Null point in netbeans gui

Ivan Kesic
Ranch Hand

Joined: Feb 05, 2009
Posts: 68
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

Joined: Jul 26, 2007
Posts: 10384
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ivan Kesic
Ranch Hand

Joined: Feb 05, 2009
Posts: 68
Ok ill do that, than put a new post...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Null point in netbeans gui