public static void main(String[] args) {
        
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        Principal novo = new Principal();
        novo.setVisible(true);
        Action logout = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                //JFrame frame = (JFrame) e.getSource();
                Principal executavel= (Principal) e.getSource();
                //frame.dispose();
                executavel.logOut();
            }
        };

        InactivityListener listener = new InactivityListener(novo, logout, 1);
        listener.start();

    }