⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e0f8b2a83a5d001c1a95813b7cb3a02a

📁 QQ连连看游戏源码。完全仿照QQ游戏中的连连看制作的单机版游戏。
💻
字号:
package cn.nawang.test;

import java.awt.Color;

import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.StyledDocument;

public class HelpTxt {
	public static String helpDoc = 
		"<b><font size=12 color=Navy><u>规则 计分 排行版 源码 BUG</font></b></u>" 
		+ "<br>" 
		+ "<p align=left><b><font size=12 color=Navy>规则</font></b></p>" 
		+ "<br>"
		+ "<p align=left><font size=12 color=Navy>选择两个点,如果两点的图片完全一样,并且两点之间可以用不超过3条直线连接起来,则该两点可以消除</font></p>"
		;
	public HelpTxt(StyledDocument helpDoc) {
		// TODO Auto-generated constructor stub
	}
//	public StyledDocument insertDoc(StyledDocument helpDoc, String content, String currentStyle)
//	{
//		try{
//			helpDoc.insertString(helpDoc.getLength(), content, helpDoc.getStyle(currentStyle));
//		}
//		catch(BadLocationException e)
//		{
//			System.err.println("BadLocationException: "+e);
//		}
//		return helpDoc;
//	}
//	public void createStyle(String style, StyledDocument doc, int size, int bold, int underline, Color color, String fontName)
//	{
//		Style sys = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
//		Style s = doc.addStyle(style, sys);
//		StyleConstants.setFontSize(s, size);
//		StyleConstants.setBold(s, (bold==1)?true:false);
//		StyleConstants.setUnderline(s, (underline==1)?true:false);
//		StyleConstants.setForeground(s, color);
//		StyleConstants.setFontFamily(s, fontName);
//	}
//	public void createHelpTxt()
//	{
//		createStyle("title01", this.helpDoc, 18, 1, 1, new Color(0x374d76), "黑体");
//		createStyle("contentZh", this.helpDoc, 12, 0, 0, new Color(0x374d76), "宋体");
//		createStyle("title02", this.helpDoc, 18, 1, 0, new Color(0x374d76), "黑体");
//		createStyle("contentEn", this.helpDoc, 12, 0, 0, new Color(0x374d76), "Arial");
//	}

}

⌨️ 快捷键说明

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