I made my first JAVA program to try it out, but when I compile the source code I get the message: "C:\Documents and Settings\E. Evertsen\Bureaublad\Muziekcalculator.java:44: float cannot be dereferenced flsdtextfield.setText(stuitkomst);". What's the problem? Thanx allready.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Apr 24, 2004
Hey Erik, you cannot call a method over primitive variables. Even though, it is Float means also, u can't call setXXXX methods. since, Float is a immutable class/object. I think so, u have to display the result in the form. so u can call the following st., instead of that one.