Class GenTextPanel
java.lang.Object
|
+----GenTextPanel
- public class GenTextPanel
- extends Object
GenTextPanel - Class with factory methods used to generate graphics objects
for our message area.
- Author:
- Jayme Manning, Paul Kronenwetter
-
GenTextPanel()
-
-
genBroadcastMessage(String)
- genBroadcastMessage - Factory method used to produce a list label
for Broadcast messages.
-
genDirectMessage(String)
- genDirectMessage - Factory method used to produce a list label
for Direct messages.
-
genUserMessage(String)
- genUserMessage - Factory method used to produce a list label
for user messages.
GenTextPanel
public GenTextPanel()
genUserMessage
public static JLabel genUserMessage(String x)
- genUserMessage - Factory method used to produce a list label
for user messages. The foreground for these messages is black.
- Parameters:
- x - Text for JLabel.
- Returns:
- JLabel - The label to be included in the list.
genDirectMessage
public static JLabel genDirectMessage(String x)
- genDirectMessage - Factory method used to produce a list label
for Direct messages. The foreground for these messages is red.
- Parameters:
- x - Text for JLabel.
- Returns:
- JLabel - The label to be included in the list.
genBroadcastMessage
public static JLabel genBroadcastMessage(String x)
- genBroadcastMessage - Factory method used to produce a list label
for Broadcast messages. The foreground for these messages is blue.
- Parameters:
- x - Text for JLabel.
- Returns:
- JLabel - The label to be included in the list.