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

📄 b.java

📁 microtik tool to vie another router in a network
💻 JAVA
字号:
package com.hoya.games.sp;

import com.hoya.client.f;
import com.hoya.common.a;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.io.PrintStream;
import java.text.DecimalFormat;
import java.util.ArrayList;
import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JViewport;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;

public final class B extends JDialog
  implements ActionListener, KeyListener, MouseListener
{
  private static final a c = a.a();
  private static Font l = new Font("Dialog", 0, 12);
  ArrayList a = new ArrayList();
  Dialog b;
  private int d = 0;
  private JPanel e = new JPanel();
  private BorderLayout f = new BorderLayout();
  private A g = new A();
  private JPanel h = new JPanel();
  private BorderLayout i = new BorderLayout();
  private JPanel j = new JPanel();
  private JButton k = new JButton();
  private BorderLayout n = new BorderLayout();
  private JScrollPane o = new JScrollPane();
  private JList p = new JList();
  private JPanel q = new JPanel();
  private JLabel r = new JLabel();
  private JLabel s = new JLabel();
  private JLabel t = new JLabel();
  private JLabel u = new JLabel();
  private JLabel v = new JLabel();
  private DefaultListModel w = new DefaultListModel();
  private GridBagLayout z = new GridBagLayout();
  private JLabel A = new JLabel();
  private JLabel B = new JLabel();
  private JLabel C = new JLabel();
  private JLabel D = new JLabel();
  private JLabel E = new JLabel();
  private JLabel F = new JLabel();
  private JLabel G = new JLabel();
  private Border H = BorderFactory.createEtchedBorder(Color.white, Color.gray);
  private Border I;

  public final void a()
  {
    this.w.removeAllElements();
    this.a.clear();
  }

  public final void a(String paramString1, String paramString2, String paramString3, int paramInt1, int paramInt2, int[] paramArrayOfInt)
  {
    if ((lx.aS == 2) || (lx.aS == 3))
      if (paramString2.indexOf("4K") > -1)
        paramString2 = ((paramString2 = a.a(paramString2 = a.a(paramString2 = a.a(paramString2, "1", "'"), "2", "''"), "3", "'''")).indexOf("Myk") > -1) ? "4MK" + paramString2.substring(2, paramString2.indexOf(" Myk")) : (lx.aS == 2) ? "4MK" : a.a(paramString2, "4K", "4k");
    Object[] arrayOfObject = { paramString1, paramString2, paramString3, new Integer(paramInt1), new Integer(paramInt2), paramArrayOfInt };
    this.a.add(arrayOfObject);
    if (lx.aS == 3);
    this.w.addElement(paramString2 + "\t" + a.a(paramInt1, 6));
  }

  public final void a(int paramInt)
  {
    this.d = paramInt;
    lx.aA.a(2041, Integer.toHexString(this.d));
    this.A.setText(a.a(this.d + "", 3, '0'));
    this.B.setText(" ");
    this.C.setText(" ");
    this.D.setText(" ");
    this.E.setText(" ");
    xl.a(this, this.b);
    this.g.a(false);
    setVisible(true);
  }

  public B(Dialog paramDialog)
  {
    super(paramDialog, "", true);
    this.I = new TitledBorder(this.H, " Detail History ");
    this.b = paramDialog;
    try
    {
      b();
      return;
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
  }

  public B()
  {
    this.I = new TitledBorder(this.H, " Detail History ");
    try
    {
      b();
      return;
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
  }

  private void b()
    throws Exception
  {
    setSize(350, 430);
    this.k.addActionListener(this);
    this.p.addMouseListener(this);
    this.p.addKeyListener(this);
    y localy = new y();
    localy.a(new int[] { 45 });
    this.p.setCellRenderer(localy);
    getContentPane().setLayout(this.f);
    this.e.setLayout(this.i);
    this.k.setFont(l);
    this.k.setText("Close");
    this.h.setLayout(this.n);
    this.q.setLayout(this.z);
    if (lx.aS == 3)
    {
      Font localFont1 = new Font("Courier New", 0, 12);
      Font localFont2 = new Font("Courier New", 1, 12);
      this.r.setFont(localFont2);
      this.s.setFont(localFont1);
      this.t.setFont(localFont1);
      this.u.setFont(localFont1);
      this.v.setFont(localFont1);
      this.r.setText("TBL  : ");
      this.s.setText("TIME : ");
      this.t.setText("TYPE : ");
      this.u.setText("PLYR : ");
      this.v.setText("SCORE: ");
      this.A.setFont(localFont2);
      this.B.setFont(localFont1);
      this.C.setFont(localFont1);
      this.D.setFont(localFont1);
      this.E.setFont(localFont1);
      this.p.setFont(localFont1);
      this.p.setBackground(lx.bg);
      this.q.setBackground(lx.bf);
    }
    this.r.setFont(l);
    this.s.setFont(l);
    this.t.setFont(l);
    this.u.setFont(l);
    this.v.setFont(l);
    this.r.setText("TABLE : ");
    this.s.setText("TIME : ");
    this.t.setText("TYPE : ");
    this.u.setText("PLAYER : ");
    this.v.setText("SCORE : ");
    this.A.setFont(l);
    this.B.setFont(l);
    this.C.setFont(l);
    this.D.setFont(l);
    this.E.setFont(l);
    this.p.setForeground(Color.blue);
    this.p.setFont(l);
    this.p.setModel(this.w);
    if (lx.aS == 3);
    this.p.setSelectionBackground(Color.lightGray);
    this.p.setSelectionForeground(Color.yellow);
    this.p.setSelectionMode(0);
    this.p.setVisibleRowCount(6);
    setResizable(false);
    this.A.setText(" ");
    this.B.setText(" ");
    this.C.setText(" ");
    this.D.setText(" ");
    this.E.setText(" ");
    this.o.setVerticalScrollBarPolicy(20);
    this.o.setAutoscrolls(true);
    getContentPane().add(this.e, "Center");
    if (lx.aS == 3);
    this.h.setBorder(this.I);
    this.g.setPreferredSize(new Dimension(320, 200));
    this.o.setPreferredSize(new Dimension(155, 150));
    this.g.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(Color.white, Color.gray), this.H));
    getContentPane().add(this.g, "North");
    this.e.add(this.h, "Center");
    this.h.add(this.o, "West");
    this.o.getViewport().add(this.p);
    this.e.add(this.j, "South");
    int i1 = 5;
    if (lx.aS == 3);
    ((i1 = 2) ? this.o : this.j.add(this.k));
    this.h.add(this.q, "Center");
    this.q.add(this.G, new GridBagConstraints(1, 6, 1, 1, 1D, 1D, 10, 1, new Insets(0, 0, 0, 0), 0, 0));
    this.q.add(this.F, new GridBagConstraints(0, 6, 1, 1, 0D, 0D, 10, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.q.add(this.r, new GridBagConstraints(0, 0, 1, 1, 0D, 0D, 13, 0, new Insets(i1, 5, 0, 0), 1, 1));
    this.q.add(this.s, new GridBagConstraints(0, 1, 1, 1, 0D, 0D, 13, 0, new Insets(i1, 5, 0, 0), 0, 0));
    this.q.add(this.t, new GridBagConstraints(0, 2, 1, 1, 0D, 0D, 13, 0, new Insets(i1, 5, 0, 0), 0, 0));
    this.q.add(this.u, new GridBagConstraints(0, 3, 1, 1, 0D, 0D, 13, 0, new Insets(i1, 5, 0, 0), 0, 0));
    this.q.add(this.v, new GridBagConstraints(0, 4, 1, 1, 0D, 0D, 13, 0, new Insets(i1, 5, 0, 0), 0, 0));
    this.q.add(this.A, new GridBagConstraints(1, 0, 1, 1, 1D, 0D, 17, 2, new Insets(i1, 2, 0, 0), 0, 0));
    this.q.add(this.B, new GridBagConstraints(1, 1, 1, 1, 1D, 0D, 17, 2, new Insets(i1, 2, 0, 0), 0, 0));
    this.q.add(this.C, new GridBagConstraints(1, 2, 1, 1, 1D, 0D, 10, 2, new Insets(i1, 2, 0, 0), 0, 0));
    this.q.add(this.D, new GridBagConstraints(1, 3, 1, 1, 1D, 0D, 17, 2, new Insets(i1, 2, 0, 0), 0, 0));
    this.q.add(this.E, new GridBagConstraints(1, 4, 1, 1, 1D, 0D, 17, 2, new Insets(i1, 2, 0, 0), 0, 0));
    if (lx.aS == 3)
      this.q.add(this.k, new GridBagConstraints(0, 5, 2, 1, 1D, 0D, 17, 0, new Insets(5, 0, 0, 0), 0, 0));
  }

  public final void actionPerformed(ActionEvent paramActionEvent)
  {
    if (paramActionEvent.getSource() == this.k)
      dispose();
  }

  public final void keyTyped(KeyEvent paramKeyEvent)
  {
  }

  public final void keyPressed(KeyEvent paramKeyEvent)
  {
  }

  public final void keyReleased(KeyEvent paramKeyEvent)
  {
    c();
  }

  public final void mouseClicked(MouseEvent paramMouseEvent)
  {
  }

  public final void mousePressed(MouseEvent paramMouseEvent)
  {
    c();
  }

  private void c()
  {
    Object[] arrayOfObject;
    DecimalFormat localDecimalFormat;
    int i1 = this.p.getSelectedIndex();
    a("select index:" + i1);
    if (i1 < 0)
      return;
    String str1 = (String)(arrayOfObject = (Object[])(Object[])this.a.get(i1))[0];
    String str2 = (String)arrayOfObject[1];
    String str3 = (String)arrayOfObject[2];
    int i2 = ((Integer)arrayOfObject[3]).intValue();
    int i3 = ((Integer)arrayOfObject[4]).intValue();
    int[] arrayOfInt = (int[])(int[])arrayOfObject[5];
    this.B.setText(str1);
    if (lx.aS == 3);
    this.C.setText(str2 + ((new java.lang.StringBuffer()) ? "   (" : "     (") + i2 + "c)");
    this.D.setText(str3);
    if (lx.aS == 2);
    this.E.setText(i3 + "");
    this.g.a(arrayOfInt, str2);
    this.g.a(true);
  }

  public final void mouseReleased(MouseEvent paramMouseEvent)
  {
  }

  public final void mouseEntered(MouseEvent paramMouseEvent)
  {
  }

  public final void mouseExited(MouseEvent paramMouseEvent)
  {
  }

  private static void a(String paramString)
  {
    if (lx.aJ)
      System.out.println(paramString);
  }
}

⌨️ 快捷键说明

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