File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Null point in netbeans gui

Ivan Kesic
Ranch Hand

Joined: Feb 05, 2009
Posts: 68

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.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10826

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

Joined: Oct 27, 2005
Posts: 20276

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.

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Null point in netbeans gui
It's not a secret anymore!