[JAVAGUI] issue #41 - add a function to check the visibility of a component.