Yes. You can add java statement which return "true/false" value in the [u]Visible[/u] property field.
I hope EJS(Easy Java Simulation) really help you create simulation you need easily. :-)