Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

c cross

+ Follow
since Dec 01, 2011
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by c cross

How would i go about initialising it?
Sorry if this sounds like a really stupid question.
10 years ago
this.inputPanel.add(this.floatInput); is the line 66 on my computer. Hope this helps
i can post the whole file if you wish.
10 years ago
When i get rid of the inputpanel area i get no error. However, when i place it back in i get this error:
"Exception in thread "main" java.lang.NullPointerException
at java.awt.Container.addImpl(
at java.awt.Container.add(
at temperatureConverter.<init>(
at temperatureConverter.main("
10 years ago
Hello All,
i'm trying to produce a temperature converter in swing that uses a menu to select between c to f or f to c, from here someone can enter in the value click go and then they receive the answer.
I'm struggling with my jlabel section as a null error.
What i want it to look like is:
Select a type : (drop down menu)
Type in number: (box to type in) (go button)
answer will appear on this line.

I keep getting an error i cant solve with this code:

The error occurs in the inputPanel line and i dont know waht to do.
10 years ago