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

c cross

Greenhorn
+ Follow
since Dec 01, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
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
Hello,
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(Container.java:1045)
at java.awt.Container.add(Container.java:365)
at temperatureConverter.<init>(temperatureConverter.java:66)
at temperatureConverter.main(temperatureConverter.java:110)"
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