Class MessagesPane

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----MessagesPane

public class MessagesPane
extends JPanel
MessagesPane - Displays the messages sent by the other participants.

Author:
Paul Kronenwetter, Jayme Manning

Paul Kronenwetter
Jayme Manning
Trade Secrets and/or Confidential
Commercial or Financial Information
Exempt From Disclosure Under the Freedom
of Information Act (5 USC 552(b)(3)
and 5 USC 552(b)(4)) and Under 18 USC 1905

Proprietary Information Notice
This document contains information proprietary to, and is the sole property of, Paul Kronenwetter and Jayme Manning. It shall not be reproduced, used or disclosed in any manner or for any purpose not authorized in writing by both Paul Kronenwetter and Jayme Manning, and except, as retention may be so authorized, it shall be returned to Paul Kronenwetter or Jayme Manning upon request.

© 1998 by Paul Kronenwetter and Jayme Manning
All Rights Reserved


Constructor Index

 o MessagesPane()
Void constructor that calls realCtor.

Method Index

 o addMessage(JLabel)
addMessage - Method used to add a message to the List.
 o addMessage(JTextArea)
addMessage - Method used to add a message to the List.
 o addMessage(String)
addMessage - Method used to add a message to the List.
 o getPreferredSize()
Replies to requests for this component's preferred size.
 o reset()
Method to re-initialize panel.

Constructors

 o MessagesPane
 public MessagesPane()
Void constructor that calls realCtor.

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Replies to requests for this component's preferred size.

Returns:
The preferred size of this panel in a Dimension.
Overrides:
getPreferredSize in class JComponent
 o reset
 public void reset()
Method to re-initialize panel. Probably not needed, except for debugging purposes.

 o addMessage
 public void addMessage(JLabel message)
addMessage - Method used to add a message to the List.

Parameters:
message - - JLabel containing message
 o addMessage
 public void addMessage(JTextArea message)
addMessage - Method used to add a message to the List.

Parameters:
message - - Message Panel.
 o addMessage
 public void addMessage(String message)
addMessage - Method used to add a message to the List.

Parameters:
message - - Message string.