src/main/java/com/project/emailclient/EmailClient.java
/* Update each button's state based off of whether or not
     there is a message currently selected in the table. */
Update each button's state based off of whether or not
there is a message currently selected in the table.
Update each button ' s state based off of whether or not there is a message currently selected in the table .
private void updateButtons() {
        if (selectedMessage != null) {
            replyButton.setEnabled(true);
            forwardButton.setEnabled(true);
            deleteButton.setEnabled(true);
        } else {
            replyButton.setEnabled(false);
            forwardButton.setEnabled(false);
            deleteButton.setEnabled(false);
        }
    }
private void updateButtons ( ) { if ( selectedMessage != null ) { replyButton . setEnabled ( true ) ; forwardButton . setEnabled ( true ) ; deleteButton . setEnabled ( true ) ; } else { replyButton . setEnabled ( false ) ; forwardButton . setEnabled ( false ) ; deleteButton . setEnabled ( false ) ; } }
Update each button's state based off of whether or not
there is a message currently selected in the table.
Update each button ' s state based off of whether or not there is a message currently selected in the table .