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

📄 panelbas_proc.java

📁 这是一个在linux环境下
💻 JAVA
字号:
package fr.umlv.projet.fenetre.preformance;

import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JPanel;

/**
 * The Panel "Processus" int the Panel 
 * {@link fr.umlv.projet.fenetre.preformance.PanelBas PanelBas}
 * @author HUANG Wei & MA Xiao Jun
 *
 */
public class PanelBas_Proc extends JPanel {
private int processus = 0;
private int h = 0;
protected@Override void paintComponent(Graphics graphic){
	Graphics2D g = (Graphics2D)graphic; 
	super.paintComponent(g);
	h = this.getHeight();
	g.drawString("Processus : "+processus,5,h-2);
}

/**
 * to refresh the Panel "Processus"
 * @param processus the value of the number of processus
 */
public void refresh(int processus){
	this.processus = processus;
	
}
}

⌨️ 快捷键说明

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