Added Javadoc, changed getFirstTextContent from public to private
This commit is contained in:
		| @@ -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<User> 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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user