001package horstmann.ch05_mailgui; 002/** 003 A message left by the caller. 004 */ 005public class Message 006{ 007 /** 008 Construct a Message object. 009 @param messageText the message text 010 */ 011 public Message(String messageText) 012 { 013 text = messageText; 014 } 015 016 /** 017 Get the message text. 018 @return message text 019 */ 020 public String getText() 021 { 022 return text; 023 } 024 025 private String text; 026}