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

📄 lx.java

📁 microtik tool to vie another router in a network
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
package com.hoya.games.sp;

import com.hoya.client.f;
import com.hoya.common.a;
import com.hoya.games.common.a;
import com.hoya.util.a;
import com.hoya.util.b;
import com.hoya.util.code.h;
import com.hoya.util.graphics.a;
import java.applet.AudioClip;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Hashtable;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.Vector;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JViewport;
import javax.swing.Timer;
import javax.swing.UIManager;

public class lx extends JFrame
  implements ActionListener
{
  static AudioClip[] i;
  public static boolean aa = false;
  public static SimpleDateFormat ac = new SimpleDateFormat("HH:mm:ss");
  DecimalFormat aC = new DecimalFormat("#,###,###,###.##");
  private static Font bv = new Font("Dialog", 1, 12);
  public static long a = -1L;
  public static long as;
  public static long aB = -1L;
  public static int aI = 20000;
  public static long b;
  public static boolean c = true;
  public static boolean d = false;
  public static boolean aL = false;
  public static boolean aJ = false;
  public static boolean f = false;
  public static boolean g = false;
  public static boolean aD = false;
  public static boolean aK = false;
  public static boolean aP = false;
  public static boolean e = false;
  public static boolean aQ = false;
  public static boolean aR = false;
  public static int aS = 2;
  public static boolean aT = false;
  public static int aU = 0;
  public static int aV = 1;
  public static int aW = 1;
  public static int aX = 1;
  public static String aY = "";
  public static int aZ = 800;
  public static String ba = "";
  private f bw;
  public static String bb = "";
  private int bx;
  private int by;
  public static Vector bc = new Vector();
  public static Hashtable bd = new Hashtable();
  public static Vector be = new Vector();
  public static Color bf = new Color(195, 211, 211);
  public static Color bg = new Color(255, 251, 227);
  public static Color bh = new Color(236, 233, 216);
  public static Color bi = new Color(212, 208, 200);
  public static String h = "";
  private static ServerSocket aF;
  public static j j;
  public static String k = null;
  public static String l = null;
  public static Vector m = new Vector();
  public static TreeMap n = new TreeMap();
  public static TreeMap o = new TreeMap();
  public static int p;
  public static int q;
  public static int r;
  public static int s;
  public static int t;
  public static int[] u;
  public static int v;
  public static int[] w;
  public static int[] aO;
  public static int z;
  public static int A;
  public static int B;
  public static boolean C;
  public static boolean D;
  public static x[] E;
  public static x[] F;
  public static int G;
  public static int H;
  public static int I;
  public static int J;
  public static int K;
  public static int L;
  public static boolean M;
  public static boolean N;
  public static boolean aM;
  public static int aN;
  public static int bj;
  public static boolean O;
  public static boolean bk;
  public static boolean P;
  public static boolean Q;
  public static long R;
  public static boolean S;
  public static boolean T;
  public static int U;
  public static boolean V;
  public static x W;
  public static x X;
  public static x Y;
  public static boolean Z;
  public static boolean bl;
  public static int ab;
  public static b ad;
  public static long ae;
  public static int af;
  public static long ag;
  private Timer aG;
  JPanel ah;
  JPanel ai;
  GridBagLayout aj;
  BorderLayout ak;
  JLabel al;
  JLabel am;
  JTextField an;
  JPasswordField ao;
  ImageIcon ap;
  static Image aq;
  JLabel ar;
  JLabel at;
  JLabel au;
  JLabel av;
  JPanel aw;
  JPanel ax;
  JButton bm;
  JButton bn;
  JProgressBar aE;
  D bo;
  GridBagLayout ay;
  GridLayout az;
  public static com.hoya.client.f aA;
  public static String aH;
  public static String bp;
  public static String bq;
  public static int br;
  public static d bs;
  public static String bt;
  public static String bu;

  public static String a(int paramInt)
  {
    String str1 = "Found new version, game will close and start auto update program.";
    String str2 = "已發現更新程式, 遊戲將結束並開始下載程序";
    switch (paramInt)
    {
    case 4:
      if (aU == 0)
        return str1;
      if (aU != 0)
        break label44;
      return str2;
    }
    label44: return "";
  }

  public static void a()
  {
    try
    {
      if (aS == 2)
        Runtime.getRuntime().exec("update.exe " + bt);
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
    System.exit(0);
  }

  public lx()
  {
    this.aG = new Timer(5, this);
    this.ah = new JPanel();
    this.ai = new JPanel();
    this.aj = new GridBagLayout();
    this.ak = new BorderLayout();
    this.al = new JLabel();
    this.am = new JLabel();
    this.an = new JTextField();
    this.ao = new JPasswordField();
    this.ar = new JLabel();
    this.at = new JLabel();
    this.au = new JLabel();
    this.av = new JLabel();
    this.aw = new JPanel();
    this.ax = new JPanel();
    this.bm = new JButton("REGISTER");
    this.bn = new JButton("E N T E R");
    this.aE = new JProgressBar();
    this.ay = new GridBagLayout();
    this.az = new GridLayout();
    if (aQ)
      aI = 90000;
    try
    {
      e();
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
    pack();
    if (c)
      xl.a(this);
    else
      setLocation(1400, 1000);
    show();
    try
    {
      i1 = 0;
      i1 = (aS == 3) ? 45611 : (aS == 2) ? 65287 : 56800;
      aF = new ServerSocket(i1);
      aF.close();
    }
    catch (IOException localIOException)
    {
      g();
      JOptionPane.showMessageDialog(this, "Auto update program is running, please close all program.");
      System.exit(0);
    }
    int i1 = 0;
    int i2 = 0;
    if (aS == 2);
    if (aS == 3);
    i1 = 56801;
    i2 = (i1 = 45612) ? 45613 : (i1 = 65288) ? 65289 : 56802;
    if ((!(d)) && (!(aQ)))
      try
      {
        aF = new ServerSocket(i1);
      }
      catch (Exception localException3)
      {
        try
        {
          aF = new ServerSocket(i2);
        }
        catch (Exception localException4)
        {
          g();
          String str = "Only allow play 2 games!";
          pack();
          xl.a(this);
          this.av.setText(str);
          this.av.setForeground(Color.red);
          show();
          JOptionPane.showMessageDialog(this, str);
          System.exit(0);
        }
      }
    if ((!(aQ)) && (aS == 1))
    {
      this.bw = new f();
      this.bw.start();
    }
  }

  public static void main(String[] paramArrayOfString)
  {
    try
    {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
    catch (Exception localException2)
    {
      (localException1 = localException2).printStackTrace();
    }
    if ((paramArrayOfString.length != 0) && ("localhost".equalsIgnoreCase(paramArrayOfString[0])))
      aD = true;
    new lx();
    Exception localException1 = null;
  }

  private void d()
  {
    j = new j(j.g);
    j.validate();
    xl.a(j, this);
    bs = new d(j);
    xl.a(bs, j);
  }

  private void e()
    throws Exception
  {
    if (c)
    {
      if (aS == 2);
      if (aS == 3);
      if (aS == 4);
      this.ap = x.C.b("resources/newbt2_login_logo.gif");
      aq = x.C.a("resources/newbt2_title.gif");
      this.ar = new JLabel(this.ap);
      setIconImage(aq);
      setTitle(bq);
    }
    d();
    setResizable(false);
    setDefaultCloseOperation(3);
    this.an.addActionListener(this);
    this.ao.addActionListener(this);
    this.an.setPreferredSize(new Dimension(80, 17));
    this.ao.setPreferredSize(new Dimension(80, 17));
    this.ai.setBackground(Color.black);
    this.al.setFont(new Font("Dialog", 0, 12));
    this.al.setForeground(Color.white);
    this.am.setFont(new Font("Dialog", 0, 12));
    this.am.setForeground(Color.white);
    getContentPane().setBackground(Color.black);
    this.ah.setBackground(Color.black);
    this.at.setFont(new Font("Dialog", 0, 13));
    if (c)
      this.at.setForeground(Color.yellow);
    this.at.setText("  Internet Bola Tangkas");
    this.au.setFont(new Font("Dialog", 1, 16));
    if (c)
      this.au.setForeground(Color.yellow);
    this.av.setFont(new Font("Dialog", 0, 11));
    this.av.setForeground(Color.white);
    this.av.setText("");
    this.aw.setBackground(Color.black);
    this.aw.setLayout(this.ay);
    this.ax.setBackground(Color.darkGray);
    this.ax.setMinimumSize(new Dimension(32, 20));
    this.ax.setPreferredSize(new Dimension(32, 20));
    this.ax.setLayout(this.az);
    getContentPane().add(this.ah, "Center");
    this.ah.setLayout(this.ak);
    this.ai.setBorder(null);
    this.ai.setLayout(this.aj);
    if (aS == 2);
    if (m());
    if (n())
    {
      this.al.setText("  帳號 :");
      this.am.setText("  密碼 :");
    }
    this.bm.setFont(new Font("Dialog", 0, 12));
    this.bm.addActionListener(this);
    this.bm.setMnemonic('R');
    this.bn.setFont(new Font("Dialog", 0, 12));
    this.bn.addActionListener(this);
    this.bn.setMnemonic('L');
    this.bn.setOpaque(true);
    this.bm.setPreferredSize(new Dimension(100, 20));
    this.bn.setPreferredSize(new Dimension(100, 20));
    this.aE.setVisible(false);
    this.ah.add(this.ai, "Center");
    this.ah.add(this.aw, "South");
    this.ah.add(this.ar, "West");
    this.ai.add(this.al, new GridBagConstraints(0, 2, 1, 1, 0D, 0D, 13, 0, new Insets(0, 0, 0, 5), 0, 0));

⌨️ 快捷键说明

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