message.java

来自「一个代理服务器的源码实现 本例中HTTP代理服务器默认于8000端口建立代理服」· Java 代码 · 共 32 行

JAVA
32
字号
/*
 * Created on 2004-12-29
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */

/**
 * @author mq
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
import javax.swing.*;

public class Message {
	public static JTextArea log;
	
	public static void show(String str)
	{
		log.append(str);
		log.append("\n"); 
	}
	
	public static void show(char[] str)
	{
		String msg = new String(str);
		log.append(msg);
		log.append("\n");
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?