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

📄 i.java

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

import com.hoya.client.f;
import com.hoya.util.code.h;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JViewport;
import javax.swing.border.Border;

public final class i extends JDialog
  implements ActionListener, KeyListener
{
  public static int a;
  JPanel b;
  JPanel c;
  JPanel d;
  BorderLayout e;
  JPanel f;
  BorderLayout g;
  JPanel h;
  JPanel i;
  Border j;
  BorderLayout k;
  JLabel l;
  BorderLayout m;
  JPanel n;
  BorderLayout o;
  JLabel p;
  JTextField q;
  BorderLayout r;
  JTextField s;
  JButton t;
  JScrollPane u;
  JTextArea v;
  BorderLayout w;
  Border z;
  Border A;

  public i(Frame paramFrame)
  {
    super(paramFrame, false);
    this.b = new JPanel();
    this.c = new JPanel();
    this.d = new JPanel();
    this.e = new BorderLayout();
    this.f = new JPanel();
    this.g = new BorderLayout();
    this.h = new JPanel();
    this.i = new JPanel();
    this.j = BorderFactory.createEmptyBorder(5, 5, 5, 5);
    this.k = new BorderLayout();
    this.l = new JLabel();
    this.m = new BorderLayout();
    this.n = new JPanel();
    this.o = new BorderLayout();
    this.p = new JLabel();
    this.q = new JTextField();
    this.r = new BorderLayout();
    this.s = new JTextField();
    this.t = new JButton("Send");
    this.u = new JScrollPane();
    this.v = new JTextArea();
    this.w = new BorderLayout();
    this.z = BorderFactory.createEmptyBorder(5, 5, 5, 5);
    this.A = BorderFactory.createEmptyBorder(5, 5, 5, 5);
    if (lx.aS != 3)
      setTitle("Send to Operator");
    try
    {
      a();
      return;
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
  }

  public i()
  {
    this(null);
  }

  public final void actionPerformed(ActionEvent paramActionEvent)
  {
    if (paramActionEvent.getSource() == this.t)
    {
      if (this.q.getText().length() > 200)
      {
        this.l.setText("Message is too long");
        if (lx.aS == 2)
          JOptionPane.showMessageDialog(this, "Message is too long");
        return;
      }
      if (this.q.getText().trim().length() > 0)
      {
        String str = h.a(str = this.q.getText(), null);
        lx.aA.a(1221, str);
        a += 1;
        if (a <= 0)
          a = 1;
        lx.af = 5000;
        this.t.setEnabled(false);
        this.q.setText("");
        return;
      }
      if (this.q.getText().trim().length() == 0)
        this.q.requestFocus();
      this.l.setText(" ");
    }
  }

  private void a()
    throws Exception
  {
    getRootPane().setDefaultButton(this.t);
    this.t.addActionListener(this);
    this.q.addKeyListener(this);
    this.c.setLayout(this.e);
    this.d.setLayout(this.g);
    this.f.setBorder(this.j);
    this.f.setLayout(this.k);
    this.i.setLayout(this.m);
    this.h.setLayout(this.o);
    this.p.setText("To ");
    this.n.setLayout(this.r);
    this.s.setText("Operator");
    this.s.setPreferredSize(new Dimension(55, 23));
    this.s.setEditable(false);
    this.t.setMnemonic('S');
    this.v.setColumns(45);
    this.v.setLineWrap(true);
    this.v.setRows(12);
    if (lx.aS != 2)
      this.v.setFont(new Font("Courier New", 1, 13));
    this.v.setEditable(false);
    this.b.setLayout(this.w);
    this.b.setBorder(this.z);
    this.c.setBorder(this.A);
    getContentPane().add(this.b, "Center");
    this.u.getViewport().add(this.v);
    getContentPane().add(this.c, "South");
    this.c.add(this.d, "Center");
    this.d.add(this.f, "Center");
    this.d.add(this.h, "North");
    this.f.add(this.i, "Center");
    this.i.add(this.l, "Center");
    this.h.add(this.n, "Center");
    this.h.add(this.p, "West");
    this.n.add(this.q, "Center");
    this.n.add(this.s, "West");
    this.h.add(this.t, "East");
    this.b.add(this.u, "Center");
    if (lx.aS == 2)
    {
      this.l.setForeground(Color.white);
      this.f.setBackground(Color.black);
      this.h.setBackground(Color.black);
      this.i.setBackground(Color.black);
      this.n.setBackground(Color.black);
      this.c.setBackground(Color.black);
      this.p.setForeground(Color.gray);
      this.s.setBackground(Color.black);
      this.s.setForeground(Color.gray);
      this.q.setBackground(Color.black);
      this.q.setForeground(Color.lightGray);
      this.v.setBackground(Color.black);
      this.v.setForeground(Color.lightGray);
    }
    this.i.setBackground(Color.lightGray);
    if (lx.aS == 3)
    {
      this.s.setFont(new Font("Dialog", 0, 12));
      this.l.setBackground(lx.bi);
      this.s.setBackground(lx.bg);
      this.q.setBackground(lx.bg);
      this.v.setBackground(lx.bg);
      this.c.setBackground(lx.bf);
      this.d.setBackground(lx.bf);
      this.f.setBackground(lx.bf);
      this.h.setBackground(lx.bf);
    }
    this.l.setText("Connection established");
  }

  public final void keyTyped(KeyEvent paramKeyEvent)
  {
  }

  public final void keyPressed(KeyEvent paramKeyEvent)
  {
  }

  public final void keyReleased(KeyEvent paramKeyEvent)
  {
  }

  public final void a(String paramString)
  {
    this.v.append(paramString + "\n");
  }
}

⌨️ 快捷键说明

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