MainSeniorHelper.java
/*
    This method is for when there's an action(buttonPressed)
    and in this i have it take inputs print them out
    along with calling generate() which will
    generate a random quote
     */
This method is for when there's an action(buttonPressed)
and in this i have it take inputs print them out
along with calling generate() which will
generate a random quote
This method is for when there ' s an action ( buttonPressed ) and in this i have it take inputs print them out along with calling generate () which will generate a random quote
public void actionPerformed(ActionEvent e) {
        String user = name.getText();
        String yr = year.getText();
        try {
            success.setText(generate());
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        usrName.setText("Thank You " + user);
        displayYr.setText("And Congratulations Class of " + yr + "!");
        displayMessage.setText("You Can Hit GENERATE Again to Get New Quote!");
    }
public void actionPerformed ( ActionEvent e ) { String user = name . getText ( ) ; String yr = year . getText ( ) ; try { success . setText ( generate ( ) ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } usrName . setText ( "Thank You " + user ) ; displayYr . setText ( "And Congratulations Class of " + yr + "!" ) ; displayMessage . setText ( "You Can Hit GENERATE Again to Get New Quote!" ) ; }
This method is for when there's an action(buttonPressed)
and in this i have it take inputs print them out
along with calling generate() which will
generate a random quote
This method is for when there ' s an action ( buttonPressed ) and in this i have it take inputs print them out along with calling generate () which will generate a random quote