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

📄 a.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.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.TreeMap;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComboBox;
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;
import javax.swing.border.Border;

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

  public a(Frame paramFrame)
  {
    super(paramFrame, "", true);
    this.J = Color.white;
    this.a = new JPanel();
    this.b = new JPanel();
    this.c = new JPanel();
    this.d = new JLabel();
    this.e = new GridLayout();
    this.f = new GridBagLayout();
    this.g = new JPanel();
    this.h = BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), BorderFactory.createEmptyBorder(5, 5, 5, 5));
    this.i = new BorderLayout();
    this.j = new JPanel();
    this.k = new JPanel();
    this.l = new JPanel();
    this.m = new JLabel();
    this.n = new GridBagLayout();
    this.o = new JButton();
    this.p = new JButton();
    this.q = new GridBagLayout();
    this.r = new JTextField();
    this.s = new GridBagLayout();
    this.t = new JLabel();
    this.u = new JTextField();
    this.v = new JLabel();
    this.w = new JLabel();
    this.z = new JPasswordField();
    this.A = new JPanel();
    this.B = new GridLayout();
    this.C = new JLabel();
    this.D = new BorderLayout();
    this.E = new JScrollPane();
    this.G = new JLabel();
    this.H = new JComboBox();
    if (lx.aS != 3)
      setTitle("Transfer to bank");
    try
    {
      b();
      return;
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
  }

  public a()
  {
    this(null);
  }

  private void b()
    throws Exception
  {
    setResizable(false);
    lx.aA.a(2171, "");
    this.H.addItemListener(this);
    this.o.addActionListener(this);
    this.p.addActionListener(this);
    if (lx.aS == 3);
    this.d.setText(" Current Credits : " + lx.q + ((new java.lang.StringBuffer()) ? " ¢" : "c"));
    this.b.setLayout(this.f);
    this.c.setLayout(this.e);
    this.c.setBackground(Color.lightGray);
    this.a.setLayout(this.q);
    this.g.setBorder(this.h);
    this.g.setLayout(this.i);
    this.k.setLayout(this.n);
    this.o.setText("  Ok  ");
    this.p.setText("Cancel");
    this.r.setPreferredSize(new Dimension(80, 23));
    this.r.setEditable(false);
    this.r.setText("");
    this.l.setLayout(this.s);
    this.t.setFont(I);
    this.t.setHorizontalAlignment(4);
    this.t.setText("Credits : ");
    this.u.setPreferredSize(new Dimension(80, 23));
    this.v.setFont(I);
    this.v.setText(" Account : ");
    if (lx.aS == 2)
      this.v.setText(" Account No : ");
    this.w.setFont(I);
    this.w.setHorizontalAlignment(4);
    this.w.setText("     Password : ");
    this.z.setPreferredSize(new Dimension(80, 23));
    this.j.setLayout(this.B);
    this.C.setFont(I);
    this.C.setText(" Pending Transactions");
    this.A.setLayout(this.D);
    F.setEditable(false);
    F.setRows(5);
    F.setColumns(15);
    if (lx.aS != 2)
      F.setColumns(35);
    this.G.setText("Bank : ");
    getContentPane().add(this.a, "Center");
    getContentPane().add(this.b, "South");
    this.c.add(this.d, null);
    this.b.add(this.c, new GridBagConstraints(0, 0, 1, 1, 1D, 1D, 10, 1, new Insets(5, 5, 5, 5), 0, 0));
    this.g.add(this.j, "Center");
    this.j.add(this.A);
    this.g.add(this.k, "South");
    this.g.add(this.l, "North");
    this.k.add(this.m, new GridBagConstraints(0, 0, 1, 1, 1D, 0D, 17, 2, new Insets(0, 0, 0, 0), 0, 0));
    this.k.add(this.p, new GridBagConstraints(2, 0, 1, 1, 0D, 0D, 10, 0, new Insets(0, 0, 0, 5), 0, 0));
    this.a.add(this.g, new GridBagConstraints(0, 0, 1, 1, 1D, 1D, 10, 1, new Insets(5, 5, 5, 5), 0, 0));
    this.A.add(this.C, "North");
    this.A.add(this.E, "Center");
    this.E.getViewport().add(F);
    this.k.add(this.o, new GridBagConstraints(1, 0, 1, 1, 0D, 0D, 10, 0, new Insets(5, 0, 5, 5), 0, 0));
    this.l.add(this.t, new GridBagConstraints(0, 2, 1, 1, 0D, 0D, 13, 0, new Insets(5, 5, 0, 0), 0, 0));
    this.l.add(this.u, new GridBagConstraints(1, 2, 1, 1, 0D, 0D, 10, 0, new Insets(5, 0, 0, 0), 0, 0));
    this.l.add(this.w, new GridBagConstraints(0, 3, 1, 1, 0D, 0D, 13, 0, new Insets(5, 0, 10, 0), 0, 0));
    this.l.add(this.z, new GridBagConstraints(1, 3, 1, 1, 0D, 0D, 10, 0, new Insets(5, 0, 10, 0), 0, 0));
    this.l.add(this.v, new GridBagConstraints(0, 1, 1, 1, 0D, 0D, 13, 0, new Insets(5, 0, 0, 0), 0, 0));
    this.l.add(this.G, new GridBagConstraints(0, 0, 1, 1, 0D, 0D, 13, 0, new Insets(5, 0, 0, 0), 0, 0));
    this.l.add(this.r, new GridBagConstraints(1, 1, 1, 1, 0D, 0D, 17, 0, new Insets(5, 0, 0, 0), 0, 0));
    this.l.add(this.H, new GridBagConstraints(1, 0, 1, 1, 0D, 0D, 17, 0, new Insets(5, 0, 0, 0), 0, 0));
    if (lx.aS == 2)
    {
      this.g.setBackground(Color.black);
      this.A.setBackground(Color.black);
      this.l.setBackground(Color.black);
      this.k.setBackground(Color.black);
      this.t.setForeground(this.J);
      this.v.setForeground(this.J);
      this.w.setForeground(this.J);
      this.C.setForeground(this.J);
      this.G.setForeground(this.J);
      this.a.setBackground(Color.black);
      this.b.setBackground(Color.black);
      this.H.setBackground(Color.black);
      this.r.setBackground(Color.black);
      this.u.setBackground(Color.black);
      this.z.setBackground(Color.black);
      F.setBackground(Color.black);
      this.H.setForeground(Color.white);
      this.r.setForeground(this.J);
      this.u.setForeground(Color.white);
      this.z.setForeground(Color.white);
      F.setForeground(Color.white);
      this.u.setCaretColor(Color.white);
      this.z.setCaretColor(Color.white);
      F.setCaretColor(Color.white);
    }
  }

  public final void a()
  {
    String str1 = (String)this.H.getSelectedItem();
    String str2 = (String)lx.n.get(str1);
    this.r.setText(str2);
  }

  public final void actionPerformed(ActionEvent paramActionEvent)
  {
    if (paramActionEvent.getSource() == this.p)
    {
      dispose();
      return;
    }
    if (paramActionEvent.getSource() == this.o)
    {
      if (this.z.getPassword().length != 0)
      {
        this.d.setText(" ");
        if (!(lx.l.equals(new String(this.z.getPassword()))))
        {
          this.d.setText("Invalid password");
          if (lx.aS == 2)
            JOptionPane.showMessageDialog(this, "Invalid password");
          return;
        }
        int i1 = 0;
        try
        {
          i1 = Integer.parseInt(this.u.getText());
        }
        catch (Exception localException)
        {
        }
        if (lx.aS == 1)
        {
          if (i1 >= 1000)
            break label163;
          this.d.setText("Minimum Withdraw 1000c(Rp.100.000)");
          return;
        }
        if (i1 < 100)
        {
          this.d.setText("Minimum withdraw = 100 credits");
          if (lx.aS == 2)
            JOptionPane.showMessageDialog(this, "Minimum withdraw = 100 credits");
          return;
        }
        if (i1 % 100 != 0)
        {
          label163: this.d.setText("TRANSFER CREDIT KE BANK NILAI BELAKANG DUA DIGIT HARUS NOL");
          JOptionPane.showMessageDialog(this, "TRANSFER CREDIT KE BANK NILAI BELAKANG DUA DIGIT HARUS NOL");
          return;
        }
        String str1 = (String)this.H.getSelectedItem();
        String str2 = (String)lx.n.get(str1);
        String str3 = h.a(str3 = str1 + "," + str2 + "," + this.u.getText() + "," + new String(this.z.getPassword()), null);
        lx.aA.a(2161, str3);
        this.u.setText("");
        this.z.setText("");
        dispose();
        return;
      }
      this.d.setText("Please enter your password!");
      if (lx.aS == 2)
        JOptionPane.showMessageDialog(this, "Please enter your password!");
    }
  }

  public final void itemStateChanged(ItemEvent paramItemEvent)
  {
    a();
  }
}

⌨️ 快捷键说明

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