New to Netbeans

A

Andre Arpin

I am trying to debug a simple applet using netbeans:

How do I get the parameters that are read by getParameter initialized.

I am working from an existing applet from found on the web. Most of the code
is really obvious except for the use of the letter f in rather unexpected
places.

http://www.javaworld.com/javaworld/jw-06-1998/beans/ColorFadeBar.html

ex:
if (x < (_iHpoints f 3))
_iTextDirection = LEFT;
else if (x > ((2 * _iHpoints) f 3))

where iHpoints is an int. the Netbeans compiler object to this syntax is
this old syntax that has been deprecated.

How could I translate this code.

Thanks in advance

Andre
 
A

Andre Arpin

Andre Arpin said:
I am trying to debug a simple applet using netbeans:

How do I get the parameters that are read by getParameter initialized.

edit the html file generated by netbeans in the same directory as the applet
and
add the param info in the applet tag
ex:
param TEXT="This is a test"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top