?? panelbas_uc.java
字號(hào):
package fr.umlv.projet.fenetre.preformance;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JPanel;
/**
* The Panel "UC" int the Panel
* {@link fr.umlv.projet.fenetre.preformance.PanelBas PanelBas}
* @author HUANG Wei & MA Xiao Jun
*
*/
public class PanelBas_UC extends JPanel {
private String UC = "";
private int h = 0;
protected@Override void paintComponent(Graphics graphic){
Graphics2D g = (Graphics2D)graphic;
super.paintComponent(g);
h = this.getHeight();
g.drawString("UC utilisee : "+UC,5,h-2);
}
/**
* to refresh the Panel "UC"
* @param Charge the value of "UC".
*/
public void refresh(String UC){
this.UC = UC;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -