SyntaxFix
Write A Post
Hire A Developer
Questions
Because you set visibility either true or false. try that setVisible(0) to visible true . and setVisible(4) to visible false.
setVisible(0)
and setVisible(4)