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

📄 k.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.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
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.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JViewport;

public final class k extends JDialog
  implements ActionListener
{
  private Color C;
  static Font l = new Font("Dialog", 0, 11);
  JPanel a;
  JPanel b;
  JPanel c;
  JPanel d;
  GridBagLayout e;
  JLabel f;
  BorderLayout g;
  JPanel h;
  GridBagLayout i;
  JLabel j;
  GridBagLayout k;
  JTextField B;
  JLabel m;
  JLabel n;
  JPasswordField o;
  BorderLayout p;
  JLabel q;
  JScrollPane r;
  public static JTextArea s = new JTextArea();
  JPanel t;
  JButton u;
  JPanel v;
  BorderLayout w;
  JButton z;
  JTextField A;

  public k(Frame paramFrame)
  {
    super(paramFrame, "Transfer to other player", true);
    this.C = Color.white;
    this.a = new JPanel();
    this.b = new JPanel();
    this.c = new JPanel();
    this.d = new JPanel();
    this.e = new GridBagLayout();
    this.f = new JLabel();
    this.g = new BorderLayout();
    this.h = new JPanel();
    this.i = new GridBagLayout();
    new GridBagLayout();
    this.j = new JLabel();
    this.k = new GridBagLayout();
    this.B = new JTextField();
    this.m = new JLabel();
    this.n = new JLabel();
    this.o = new JPasswordField();
    this.p = new BorderLayout();
    this.q = new JLabel();
    this.r = new JScrollPane();
    this.t = new JPanel();
    this.u = new JButton();
    this.v = new JPanel();
    this.w = new BorderLayout();
    this.z = new JButton();
    this.A = new JTextField();
    try
    {
      b();
      return;
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
  }

  public k()
  {
    this(null);
  }

  public final void actionPerformed(ActionEvent paramActionEvent)
  {
    if (paramActionEvent.getSource() == this.u)
    {
      dispose();
      return;
    }
    if (paramActionEvent.getSource() == this.z)
    {
      if (this.o.getPassword().length != 0)
      {
        this.f.setText(" ");
        int i1 = 0;
        try
        {
          i1 = Integer.parseInt(this.A.getText());
        }
        catch (Exception localException)
        {
        }
        if (i1 < 100)
        {
          this.f.setText(" Minimum=100c");
          if (lx.aS == 2)
            JOptionPane.showMessageDialog(this, "Minimum=100c");
          return;
        }
        if (i1 % 100 != 0)
        {
          this.f.setText(" TRANSFER CREDIT KE PLAYER LAIN NILAI BELAKANG DUA DIGIT HARUS NOL");
          if (lx.aS == 2)
            JOptionPane.showMessageDialog(this, "TRANSFER CREDIT KE PLAYER LAIN NILAI BELAKANG DUA DIGIT HARUS NOL");
          return;
        }
        if (!(lx.l.equals(new String(this.o.getPassword()))))
        {
          this.f.setText(" Invalid password");
          if (lx.aS == 2)
            JOptionPane.showMessageDialog(this, "Invalid password");
          return;
        }
        String str1 = this.B.getText().trim();
        String str2 = h.a(str2 = str1 + "," + this.A.getText() + "," + new String(this.o.getPassword()), null);
        lx.aA.a(2181, str2);
        this.o.setText("");
        this.A.setText("");
        dispose();
        return;
      }
      this.f.setText(" Please enter your password!");
      if (lx.aS == 2)
        JOptionPane.showMessageDialog(this, "Please enter your password!");
    }
  }

  private void b()
    throws Exception
  {
    setResizable(false);
    lx.aA.a(2191, "");
    this.z.addActionListener(this);
    this.u.addActionListener(this);
    this.z.setMnemonic('O');
    this.u.setMnemonic('C');
    this.b.setLayout(this.e);
    this.f.setText(" Current Credits : " + lx.q + ((lx.aS == 3) ? " ¢" : "c"));
    this.d.setLayout(this.g);
    if (lx.aS == 2)
      this.d.setBackground(Color.black);
    this.d.setBackground(Color.lightGray);
    this.c.setLayout(this.i);
    this.h.setBorder(BorderFactory.createEtchedBorder());
    this.h.setForeground(Color.red);
    this.h.setLayout(this.k);
    this.j.setFont(l);
    this.j.setHorizontalAlignment(4);
    this.j.setText("Transfer To : ");
    this.m.setFont(l);
    this.m.setHorizontalAlignment(4);
    this.m.setText("         Credit Amount : ");
    this.n.setFont(l);
    this.n.setHorizontalAlignment(4);
    this.n.setText("Password : ");
    this.o.setPreferredSize(new Dimension(75, 22));
    this.B.setPreferredSize(new Dimension(75, 22));
    this.a.setLayout(this.p);
    this.q.setText(" Transfer History");
    s.setBorder(BorderFactory.createLoweredBevelBorder());
    s.setEditable(false);
    s.setColumns(30);
    s.setRows(5);
    s.setFont(l);
    this.u.setText("Cancel");
    this.t.setLayout(this.w);
    this.z.setText("OK");
    this.A.setPreferredSize(new Dimension(75, 22));
    this.A.addFocusListener(new r(this));
    getContentPane().add(this.a, "Center");
    this.a.add(this.r, "Center");
    this.r.getViewport().add(s);
    getContentPane().add(this.b, "South");
    getContentPane().add(this.c, "North");
    this.b.add(this.d, new GridBagConstraints(0, 0, 1, 1, 1D, 1D, 10, 1, new Insets(5, 5, 5, 5), 0, 0));
    this.d.add(this.f, "Center");
    this.c.add(this.h, new GridBagConstraints(0, 0, 1, 1, 1D, 1D, 10, 1, new Insets(5, 5, 5, 5), 0, 0));
    this.a.add(this.q, "North");
    this.a.add(this.t, "South");
    this.t.add(this.v, "East");
    this.v.add(this.z);
    this.v.add(this.u);
    this.h.add(this.B, new GridBagConstraints(1, 0, 1, 1, 0D, 0D, 17, 0, new Insets(5, 0, 0, 15), 0, 0));
    this.h.add(this.o, new GridBagConstraints(1, 2, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 5, 15), 0, 0));
    this.h.add(this.n, new GridBagConstraints(0, 2, 1, 1, 0D, 0D, 13, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.h.add(this.m, new GridBagConstraints(0, 1, 1, 1, 0D, 0D, 13, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.h.add(this.j, new GridBagConstraints(0, 0, 1, 1, 0D, 0D, 13, 0, new Insets(0, 5, 0, 0), 0, 0));
    this.h.add(this.A, new GridBagConstraints(1, 1, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    if (lx.aS == 2)
    {
      this.h.setBackground(Color.black);
      this.t.setBackground(Color.black);
      this.v.setBackground(Color.black);
      this.a.setBackground(Color.black);
      this.c.setBackground(Color.black);
      this.b.setBackground(Color.black);
      this.j.setForeground(this.C);
      this.m.setForeground(this.C);
      this.n.setForeground(this.C);
      this.q.setForeground(this.C);
      s.setForeground(Color.white);
      s.setBackground(Color.black);
      this.B.setBackground(Color.black);
      this.A.setBackground(Color.black);
      this.o.setBackground(Color.black);
      this.B.setForeground(Color.white);
      this.A.setForeground(Color.white);
      this.o.setForeground(Color.white);
      this.B.setCaretColor(Color.white);
      this.A.setCaretColor(Color.white);
      this.o.setCaretColor(Color.white);
    }
  }

  public final void a()
  {
    int i1 = 0;
    try
    {
      i1 = Integer.parseInt(this.A.getText());
    }
    catch (Exception localException)
    {
    }
    if (i1 < 100)
      this.f.setText(" Minimum=100c");
  }
}

⌨️ 快捷键说明

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