private void cleanTicketForm(Container container) {
        Component[] components = container.getComponents();
        for (Component component : components) {
            component.validate();
            component.repaint();

            if (component instanceof JTextField) {
                ((JTextField) component).setText("");
            }

            if (component instanceof JPasswordField) {
                ((JPasswordField) component).setText("");
            }

            if (component instanceof JTextArea) {
                ((JTextArea) component).setText("");
            }

            if (component instanceof JTextPane) {
                ((JTextPane) component).setText("");
            }

            if (component instanceof Container) {
                cleanTicketForm((Container) component);
            }
        }
    }