From 674389f83eca6a84e8b34831a50ce2a698ed5e7e Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R Date: Sat, 12 Oct 2019 08:24:15 +0200 Subject: [PATCH] Added Javadoc, changed getFirstTextContent from public to private --- src/main/java/envoy/client/ui/ChatWindow.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/envoy/client/ui/ChatWindow.java b/src/main/java/envoy/client/ui/ChatWindow.java index 1b5768a..178c738 100644 --- a/src/main/java/envoy/client/ui/ChatWindow.java +++ b/src/main/java/envoy/client/ui/ChatWindow.java @@ -179,6 +179,12 @@ public class ChatWindow extends JFrame { loadUserList(userList); } + /** + * Initializes the elements of the user list by downloading them from the + * server. + * + * @param userList The {@link JList} to put the elements in + */ private void loadUserList(JList userList) { new Thread(() -> { Users users = envoyClient.getUsersListXml(); @@ -194,7 +200,7 @@ public class ChatWindow extends JFrame { * @param message The message from which to return the text content * @return The first content of type 'text' */ - public String getFirstTextContent(Message message) { return message.getContent().get(0).getText(); } + private String getFirstTextContent(Message message) { return message.getContent().get(0).getText(); } /** * Appends a message with sender and message content to the message list.