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

📄 b.java

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

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
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.JPanel;

public final class b extends JDialog
  implements ActionListener
{
  Font a;
  JPanel b;
  JPanel c;
  JPanel d;
  JPanel e;
  JPanel f;
  JButton g;
  JLabel h;
  JLabel i;
  JLabel j;
  JLabel k;
  BorderLayout l;
  BorderLayout m;
  FlowLayout n;
  GridBagLayout o;
  JLabel p;
  JLabel q;
  JLabel r;
  JLabel s;
  JLabel t;
  JLabel u;
  private JLabel v;

  public b(Frame paramFrame)
  {
    super(paramFrame, "Keyboard Layout", true);
    this.a = new Font("Courier New", 0, 12);
    this.b = new JPanel();
    this.c = new JPanel();
    this.d = new JPanel();
    this.e = new JPanel();
    this.f = new JPanel();
    this.g = new JButton();
    this.h = new JLabel();
    this.i = new JLabel();
    this.j = new JLabel();
    this.k = new JLabel();
    this.l = new BorderLayout();
    this.m = new BorderLayout();
    this.n = new FlowLayout();
    new FlowLayout();
    this.o = new GridBagLayout();
    this.p = new JLabel();
    this.q = new JLabel();
    this.r = new JLabel();
    this.s = new JLabel();
    this.t = new JLabel();
    this.u = new JLabel();
    this.v = new JLabel();
    try
    {
      setDefaultCloseOperation(2);
      a();
      return;
    }
    catch (Exception localException2)
    {
      Exception localException1;
      (localException1 = localException2).printStackTrace();
    }
  }

  public b()
  {
    this(null);
  }

  private void a()
    throws Exception
  {
    this.b.setLayout(this.l);
    this.c.setLayout(this.m);
    this.d.setLayout(this.n);
    this.e.setLayout(this.n);
    this.e.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    if (lx.aS == 2)
      this.a = new Font("Courier New", 1, 14);
    this.h.setFont(this.a);
    this.i.setFont(this.a);
    this.j.setFont(this.a);
    this.p.setFont(this.a);
    this.q.setFont(this.a);
    this.s.setFont(this.a);
    this.t.setFont(this.a);
    this.r.setFont(this.a);
    this.v.setFont(this.a);
    if (lx.aS == 2)
    {
      this.h.setText("Bet         = <INS> or <0> or <N>");
      this.i.setText("Deal        = <.> or <DEL> or <SPACE>");
      this.j.setText("Transfer    = <ENTER> or <Z>");
      this.p.setText("Coin        = <+> or <=>");
      this.q.setText("Cancel      = <->");
      this.r.setText("Double Bet  = <C> or <DOWN KEY>");
    }
    if (lx.aS == 3)
    {
      this.h.setText("Bet 50c   : <ins> or <0> or <N>");
      this.i.setText("Bet 10c   : <1> or <B>");
      this.j.setText("Deal      : <.> or <Del> or <space>");
      this.p.setText("Transfer  : <Enter> or <Z>");
      this.q.setText("Coin      : <+> or <=>");
      this.r.setText("Cancel    : <->");
    }
    this.h.setText("Bet 50c   : <ins> or <0> or <N>");
    this.i.setText("Bet 10c   : <1> or <B>");
    this.j.setText("Deal      : <.> or <Del> or <Space>");
    this.p.setText("Transfer  : <Enter> or <Z>");
    this.q.setText("Coin      : <+> or <=>");
    this.r.setText("Cancel    : <->");
    if (!(lx.aT))
    {
      this.s.setText("Big       : <*> or <V> or <Left Key>");
      this.t.setText("Small     : </> or <x> or <Right Key>");
      this.v.setText("Double Bet: <C> or <Down Key>");
    }
    this.f.setLayout(this.o);
    this.g.setText("OK");
    this.g.addActionListener(this);
    if (lx.aS == 2);
    this.f.setBorder(BorderFactory.createEmptyBorder(10, 60, 10, 10));
    this.c.add(this.e, "West");
    getContentPane().add(this.b, null);
    this.c.add(this.f, "Center");
    this.d.add(this.g, null);
    this.b.add(this.d, "South");
    this.b.add(this.c, "Center");
    this.f.add(this.h, new GridBagConstraints(0, 0, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.i, new GridBagConstraints(0, 1, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.j, new GridBagConstraints(0, 2, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.k, new GridBagConstraints(0, 17, 1, 1, 10.0D, 10.0D, 17, 1, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.p, new GridBagConstraints(0, 3, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.q, new GridBagConstraints(0, 4, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.r, new GridBagConstraints(0, 5, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.s, new GridBagConstraints(0, 7, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.t, new GridBagConstraints(0, 8, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    this.f.add(this.u, new GridBagConstraints(0, 9, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    if (lx.aS != 3)
      this.f.add(this.v, new GridBagConstraints(0, 6, 1, 1, 0D, 0D, 17, 0, new Insets(0, 0, 0, 0), 0, 0));
    setResizable(true);
    if (lx.aS == 2)
    {
      this.d.setBackground(Color.black);
      this.e.setBackground(Color.black);
      this.f.setBackground(Color.black);
      this.h.setForeground(Color.lightGray);
      this.i.setForeground(Color.lightGray);
      this.j.setForeground(Color.lightGray);
      this.p.setForeground(Color.lightGray);
      this.q.setForeground(Color.lightGray);
      this.r.setForeground(Color.lightGray);
      this.s.setForeground(Color.lightGray);
      this.t.setForeground(Color.lightGray);
      this.v.setForeground(Color.lightGray);
    }
  }

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

⌨️ 快捷键说明

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