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

📄 jmgpanel.java

📁 梦界家园程序开发基底框架
💻 JAVA
字号:
package jm.framework.gui.module;

import java.awt.*;
import javax.swing.*;

public class JMGPanel extends JPanel {

	private static final long serialVersionUID = -4376412923426932810L;

	public static final String CLASS_NAME = "JMGPanel";

	// private JPanel jpBody = new JPanel();
	private int piWith = 0;

	private int piHeigh = 0;

	private int piLength = 15;

	public void paint(Graphics g) {
		piWith = this.getSize().width;
		piHeigh = this.getSize().height;

		g.setColor(Color.decode(JMItemCode.GPANEL_W_LINE));
		g.draw3DRect(0, 0, piWith - 1, piHeigh - 1, true);

		g.setColor(Color.decode(JMItemCode.GPANEL_BACK));
		g.fillRect(1, 1, piWith - 2, piHeigh - 2);

		g.setColor(Color.decode(JMItemCode.GPANEL_N_LINE));
		g.draw3DRect(piLength, piLength, piWith - (2 * piLength + 1), piHeigh
				- (2 * piLength + 1), true);

		g.setColor(Color.white);
		g.fill3DRect(piLength + 1, piLength + 1, piWith - (2 * piLength + 2),
				piHeigh - (2 * piLength + 2), true);

	}
}

⌨️ 快捷键说明

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