I have a group of JTextField
and JLabel
. I want them to initially not be visible so I thought to initialize my applet with a method which calls setVisible(false)
for each of the components.
Is it possible to create a method setVisible(false)
which will set the visibility of all the components to false. Finally if I have 40 components in the applet, is it possible to do this with only one command instead of 40 commands?