[SOLVED] Easy - JTextArea won't get the text? and more stuff is wrong?

Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: Easy - JTextArea won't get the text? and more stuff is wrong?

There is a variable with a null value at line 95 when it is executed. Look at line 95, find the variable with the null value and then backtrack in the code to see why that variable does not have a valid value.

Re: Easy - JTextArea won't get the text? and more stuff is wrong?

System.out.println(einddatum);
uitkomstveld.setText(einddatum); // this should set the value of "uitkomstveld" to "einddatum" but it doesn't work yet.

in line 94 I gave "einddatum" a value and in line 95 + 96 I said print einddatum and set the text of "uitkomstveld" to "einddatum".
what variable does not have a value at this point? I don't understand this?

Re: Easy - JTextArea won't get the text? and more stuff is wrong?

What value does the variable: uitkomstveld have? Print out the variable and see if it has a value.
You expect it to have the address of a text area. Does it? I think it has a null value and is what is giving the exception. Print it and see.