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

📄 reseaubigger.java

📁 这是一个在linux环境下
💻 JAVA
字号:
package fr.umlv.projet.fenetre.net;import java.awt.BorderLayout;import java.awt.Color;import java.awt.GridLayout;import javax.swing.JPanel;/** * The Panel contains two parts:state of data send and receive. * @author HUANG Wei & MA Xiao Jun. * */public class ReseauBigger extends JPanel {	private GraphicReseau send = new GraphicReseau();	private GraphicReseau recieve = new GraphicReseau();		public ReseauBigger(){		this.setLayout(new GridLayout(2,1));		JPanel Up = new JPanel();		Up.setLayout(new BorderLayout());		JPanel Down = new JPanel();		Down.setLayout(new BorderLayout());		Up.setBorder(javax.swing.BorderFactory.createTitledBorder(				javax.swing.BorderFactory.createEtchedBorder(),				"RECIEVE (KB/S)",				javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,				javax.swing.border.TitledBorder.DEFAULT_POSITION,				new java.awt.Font("Arial", 0, 10)));		Down.setBorder(javax.swing.BorderFactory.createTitledBorder(				javax.swing.BorderFactory.createEtchedBorder(),				"TRANSMIT (KB/S)",				javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,				javax.swing.border.TitledBorder.DEFAULT_POSITION,				new java.awt.Font("Arial", 0, 10)));		Up.add(recieve,BorderLayout.CENTER);		Down.add(send,BorderLayout.CENTER);		this.add(Up);		this.add(Down);	}		/**	 * to refresh two parts together	 * @param debut debut to define the abscissa of begining to draw de cell.	 * @param out value(kb) of data sended.	 *  @param in value(kb) of data received.	 */		public void refresh(int debut,int out,int in){		send.refresh(debut,out,Color.YELLOW);		recieve.refresh(debut,in,Color.GREEN);			}}

⌨️ 快捷键说明

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