Hello, Below is the printout in Netbeans of my JavaBean ouput. The last value was typed in the TextField was 5.1 for the audio value. I have tested it may times and it always come out as 0.0 Further down is the code to parse my String to a double from the TextField. If I need a double, ddoes the user need to type it in with a decimal point in between two numbers. Would anyone guess why it comes out as 0.0?
Here is a link to a screenshot to give you an ideaof what it is I am working on. Thanks.
declares a local variable and initializes it. Since the block it's in ends immediately after, nobody ever uses this variable. Perhaps there's also a member variable named audio2 that you're trying to assign to? In that case, you need to remove the "double", which turns this from a declaration of a new variable into a simple assignment to an existing variable.