microtik tool to vie another router in a network

源代码在线查看: b.java

软件大小: 85 K
上传用户: cjf0426
关键词: microtik another network router
下载地址: 免注册下载 普通下载 VIP

相关代码

				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         =  or  or ");
				      this.i.setText("Deal        =  or  or ");
				      this.j.setText("Transfer    =  or ");
				      this.p.setText("Coin        =  or ");
				      this.q.setText("Cancel      = ");
				      this.r.setText("Double Bet  =  or ");
				    }
				    if (lx.aS == 3)
				    {
				      this.h.setText("Bet 50c   :  or  or ");
				      this.i.setText("Bet 10c   :  or ");
				      this.j.setText("Deal      :  or  or ");
				      this.p.setText("Transfer  :  or ");
				      this.q.setText("Coin      :  or ");
				      this.r.setText("Cancel    : ");
				    }
				    this.h.setText("Bet 50c   :  or  or ");
				    this.i.setText("Bet 10c   :  or ");
				    this.j.setText("Deal      :  or  or ");
				    this.p.setText("Transfer  :  or ");
				    this.q.setText("Coin      :  or ");
				    this.r.setText("Cancel    : ");
				    if (!(lx.aT))
				    {
				      this.s.setText("Big       :  or  or ");
				      this.t.setText("Small     :  or  or ");
				      this.v.setText("Double Bet:  or ");
				    }
				    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();
				  }
				}			

相关资源