📄 messageentry.java
字号:
package at.ac.uni_linz.tk.vchat;
import java.util.*;
import java.io.*;
import java.awt.*;
/**
* A MessageEntry represents the message sent by a User at a certain time.
*
* @author Arno Huetter
* (C)opyright by the Institute for Computer Science, Telecooperation Department, University of Linz
*/
public class MessageEntry implements Serializable {
public Date date;
public String text;
public Color color;
/**
* Constructs the MessageEntry.
*
* @param dateParam the Date when the message was sent
* @param textParam the message text
*/
public MessageEntry(Date dateParam, String textParam) {
this (dateParam, textParam, Color.black);
}
/**
* Constructs the MessageEntry.
*
* @param dateParam the Date when the message was sent
* @param textParam the message text
* @param colorParam the User's color
*/
public MessageEntry(Date dateParam, String textParam, Color colorParam) {
date = dateParam;
text = textParam;
color = colorParam;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -