I have a JScrollPane that seats inside of a JTabbedPane and I want to set it to invisible when a non admin user is using the program.
I have tried to use the method setVisible(false) but it doesn't work. If I use the same method such as JTabbedPane.setVisible(false), it will hide the JTabbedPane but I don't want to hide the entire JTabbedPane I only need to hide few panels in it.
Any ideas on how to get this done?