public static void habilitaCampos(Container container) {
        for (Component component : container.getComponents()) {
            if (component instanceof JTextComponent)
                habilitaTextField((JTextComponent) component);
            else if (component instanceof JComboBox)
                habilitaComponent(component);
            else if (component instanceof JCheckBox)
                habilitaComponent(component);
            else if (component instanceof JRadioButton)
                habilitaComponent(component);
            else if (component instanceof JPanel)
                habilitaCampos((JPanel) component);            
            else if (component instanceof JScrollPane)
                habilitaComponent((JScrollPane) component);
        }
    }