src/main/java/com/project/emailclient/EmailClient.java
// Show the selected message in the content panel.
Show the selected message in the content panel.
Show the selected message in the content panel .
private void showSelectedMessage() {
        setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
        try {
            messageTextArea.setText(
                    getMessageContent(selectedMessage));
            messageTextArea.setCaretPosition(0);
        } catch (Exception e) {
            showError("Unabled to load message.", false);
        } finally {
            setCursor(Cursor.getDefaultCursor());
        }
    }
private void showSelectedMessage ( ) { setCursor ( Cursor . getPredefinedCursor ( Cursor . WAIT_CURSOR ) ) ; try { messageTextArea . setText ( getMessageContent ( selectedMessage ) ) ; messageTextArea . setCaretPosition ( 0 ) ; } catch ( Exception e ) { showError ( "Unabled to load message." , false ) ; } finally { setCursor ( Cursor . getDefaultCursor ( ) ) ; } }
Show the selected message in the content panel.
Show the selected message in the content panel .
// Show hour glass cursor while message is loaded. // Return to default cursor.