Mostrar y ocultar componentes
Los elementos también se pueden mostrar u ocultar simplemente llamando a sus métodos hide() o show(). Continuando con el ejemplo anterior, para mostrar u ocultar el panel principal haríamos:
mainPanel.show();
mainPanel.hide();Last updated
Was this helpful?