日期:2014-05-20 浏览次数:20608 次
package c_port_packageBJDoctor;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class ChatClientFriendlist extends JFrame implements WindowListener ,ActionListener{
/**
*
*/
private static final long serialVersionUID = 1L;
MyLog Mylog = new MyLog(0);
JPanel jp = new JPanel();
boolean isal1open = false;
boolean isal2open = false;
boolean isal3open = false;
boolean isal4open = false;
boolean isal5open = false;
boolean isal6open = false;
boolean isal7open = true;
public ArrayList<ChineseTeacher> al1 = new ArrayList<ChineseTeacher>();
public ArrayList<EnglishTeacher> al2 = new ArrayList<EnglishTeacher>();
public ArrayList<Psychological_gas_station> al3 = new ArrayList<Psychological_gas_station>();
public ArrayList<Math_Teacher> al4 = new ArrayList<Math_Teacher>();
public ArrayList<physical_Teacher> al5 = new ArrayList<physical_Teacher>();
public ArrayList<Advertisement> al6 = new ArrayList<Advertisement>();
public CardLayoutWindow cjco = null;
public ChineseTeacher obj1 = null;
public EnglishTeacher obj2 = null;
public Psychological_gas_station obj3 =null;
public Math_Teacher obj4 = null;
public physical_Teacher obj5 = null;
public Advertisement obj6 = null;
MyJButton882 JB200 = new MyJButton882("进入语文专业家庭教师补课室",200);
MyJButton882 JB201 = new MyJButton882("<html>进入英语教师担保记录室</html>",201);
MyJButton882 JB202 = new MyJButton882("<html>进入心灵加油站专家组获得心灵力量</html>",202);
MyJButton882 JB203 = new MyJButton882("<html>进入数学专业家庭教师补课室</html>",203);
MyJButton882 JB204 = new MyJButton882("<html>进入 物理专业家庭教师补课室</html>",204);
MyJButton882 JB209 = new MyJButton882("<html>进入本地资源推荐展板</html>",209);
MyJButton882 JB210 = new MyJButton882("<html>好友消息盒子",210);
Font fnt = new Font("华文中宋",0,18);
public ChatClientFriendlist(MyLog log){
//System.out.println("CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC进入ChatClientFriendlist构造方法体");
Mylog = log;
this.start();
//如果本窗口没有在用户的一端被创建过,进行"创建并且等待数据"的状态.
if(Mylog.canclick==0){
obj1 = new ChineseTeacher();
JB200.setEnabled(false);
obj2 = new EnglishTeacher();
JB201.setEnabled(false);
obj3 = new Psychological_gas_station();
JB202.setEnabled(false);
obj4 = new Math_Teacher();
JB203.setEnabled(false);
obj5 = new physical_Teacher();
JB204.setEnabled(false);
obj6 = new Advertisement();
JB209.setEnabled(false);
Mylog.canclick=2;
}
//本窗口在用户的一端被关闭过,进行“创建出不等待值的窗口”.
else if(log.canclick==1){
obj1 = new ChineseTeacher();
obj2 = new EnglishTeacher();
obj3 = new Psychological_gas_station();
obj4 = new Math_Teacher();