JProgressBar setVisible function problem

I am using version R2 2.2b3-build 318, Java version 1.4.2-38 (Mac OS X).

I placed a JProgressBar on a form and I try to set it visible = true. In the editor Navigator I see all the classes inherited by the JProgressBar. When the line: elements.bean_148.setVisible(true) gets executed, I get an error: ‘setVisible is not a function.’

Does anyone knows what I am doing wrong?

This is indeed a bit confusing Sabeena.

When you drill down further in the tree to the Component part
you’ll notice a “Visible” property. That’s the one you need.

syntax:
elements.bean.visible = true

We’ll see if we can rule out this conflict between property and function.

Thank you for your response, what you suggested works.