import javax.swing.*;
import java.awt.*;
import java.io.*;
import java.lang.Thread;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.awt.event.*;
import java.lang.Thread;
import java.net.*;
import java.nio.channels.*;
import java.util.*;
import java.util.regex.*;
import javax.sound.sampled.*;
class PingFrame extends
Thread
{
static String IP;static JTextArea TA;static String
IDC;static boolean flag=true;static Calendar c=new
GregorianCalendar();
public static SimpleDateFormat DF = new
SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
public static JFrame JF=new JFrame("Ping test By
郭聪");
public static JTextArea TA1=new
JTextArea("TA1");
public static JScrollPane SP1=new
JScrollPane(TA1);
public static JLabel TF1=new JLabel("");
public static JButton JB1=new
JButton("开始1");
public static JLabel IDC1=new JLabel();
//public static JButton JB11=new
JButton("结束1");
public static JTextArea TA2=new
JTextArea("TA2");
public static JScrollPane SP2=new
JScrollPane(TA2);
public static JLabel TF2=new JLabel("");
public static JButton JB2=new
JButton("开始2");
public static JLabel IDC2=new JLabel();
//public static JButton JB21=new
JButton("结束2");
public static JTextArea TA3=new
JTextArea("TA3");
public static JScrollPane SP3=new
JScrollPane(TA3);
public static JLabel TF3=new JLabel("");
public static JButton JB3=new
JButton("开始3");
public static JLabel IDC3=new JLabel();
//public static JButton JB31=new
JButton("结束3");
public static JTextArea TA4=new
JTextArea("TA4");
public static JScrollPane SP4=new
JScrollPane(TA4);
public static JLabel TF4=new JLabel("");
public static JButton JB4=new
JButton("开始4");
public static JLabel IDC4=new JLabel();
//public static JButton JB41=new
JButton("结束4");
public static JTextArea TA5=new
JTextArea("TA5");
public static JScrollPane SP5=new
JScrollPane(TA5);
public static JLabel TF5=new JLabel("");
public static JButton JB5=new
JButton("开始5");
public static JLabel IDC5=new JLabel();
//public static JButton JB51=new
JButton("结束5");
public static JTextArea TA6=new
JTextArea("TA6");
public static JScrollPane SP6=new
JScrollPane(TA6);
public static JLabel TF6=new JLabel("");
public static JButton JB6=new
JButton("开始6");
public static JLabel IDC6=new JLabel();
//public static JButton JB61=new
JButton("结束6");
public static JTextArea TA7=new
JTextArea("TA7");
public static JScrollPane SP7=new
JScrollPane(TA7);
public static JLabel TF7=new JLabel("");
public static JButton JB7=new
JButton("开始7");
public static JLabel IDC7=new JLabel();
//public static JButton JB71=new
JButton("结束7");
public static JTextArea TA8=new
JTextArea("TA8");
public static JScrollPane SP8=new