?? j.java
字號:
package com.hoya.games.sp;
import com.hoya.client.f;
import com.hoya.util.b;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeMap;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
import javax.swing.Timer;
import javax.swing.UIManager;
public final class j extends JFrame
implements ActionListener, WindowListener, KeyListener
{
JLayeredPane a;
q e;
static u f = new u();
static v g = new v();
n h;
l i;
C b;
i k;
k l;
a m;
g c;
int d;
JMenuBar n;
JMenu o;
JMenuItem p;
JMenuItem j;
JMenu q;
JMenu r;
JMenuItem s;
JMenuItem t;
JMenuItem u;
JMenuItem v;
JMenuItem w;
JMenuItem z;
JMenu A;
JMenuItem B;
JMenuItem C;
JMenuItem F;
JMenu D;
JMenuItem E;
JMenu H;
JMenuItem L;
JMenuItem M;
JMenuItem N;
JMenuItem O;
JMenuItem P;
JMenuItem Q;
JMenu G;
JMenuItem R;
JMenuItem I;
JMenuItem J;
JMenuItem S;
JMenuItem K;
public final void actionPerformed(ActionEvent paramActionEvent)
{
Object localObject1;
Object localObject2;
Object localObject3;
lx.as = System.currentTimeMillis();
a("set lastActionTime");
if (paramActionEvent.getSource().equals(this.p))
{
a("exit");
windowClosing(null);
return;
}
if (paramActionEvent.getSource().equals(this.j))
{
a("GANTUNG");
i();
return;
}
if (paramActionEvent.getSource().equals(this.s))
{
a("Small");
a(0);
n.e = 0;
return;
}
if (paramActionEvent.getSource().equals(this.t))
{
a("Medium");
a(1);
n.e = 1;
return;
}
if (paramActionEvent.getSource().equals(this.u))
{
a("Large");
a(2);
n.e = 2;
return;
}
if (paramActionEvent.getSource().equals(this.v))
{
a("FullScreen");
a(3);
n.e = 3;
return;
}
if (paramActionEvent.getSource().equals(this.v))
{
a("Extra Large");
return;
}
if (paramActionEvent.getSource().equals(this.w))
{
a("ChangePassword");
b(true);
return;
}
if (paramActionEvent.getSource().equals(this.z))
{
a("Options");
this.h.pack();
xl.a(this.h, this);
this.h.show();
return;
}
if (paramActionEvent.getSource().equals(this.B))
{
a("TransferToBank");
if (this.m == null)
{
this.m = new a(this);
localObject2 = (localObject1 = lx.n).keySet().iterator();
while (((Iterator)localObject2).hasNext())
{
localObject3 = (String)((Iterator)localObject2).next();
this.m.H.addItem(localObject3);
}
}
this.m.pack();
xl.a(this.m, this);
this.m.a();
this.m.show();
return;
}
if (paramActionEvent.getSource().equals(this.C))
{
a("TransferToOtherPlayer");
if (this.l == null)
this.l = new k(this);
(localObject1 = lx.o).keySet().iterator();
localObject2 = null;
this.l.pack();
xl.a(this.l, this);
this.l.show();
return;
}
if (paramActionEvent.getSource().equals(this.R))
{
a("BigAwardMessage");
h();
return;
}
if (paramActionEvent.getSource().equals(this.I))
{
a("Send To Operator");
b();
return;
}
if (paramActionEvent.getSource().equals(this.J))
{
if (lx.aS == 3)
{
localObject1 = "";
localObject1 = ((String)localObject1) + "Bet 50c : <ins> or <0> or <N>\n";
localObject1 = ((String)localObject1) + "Bet 10c : <1> or <B>\n";
localObject1 = ((String)localObject1) + "Deal : <.> or <Del> or <space>\n";
localObject1 = ((String)localObject1) + "Transfer : <Enter> or <Z>\n";
localObject1 = ((String)localObject1) + "Coin : <+> or <=>\n";
localObject1 = ((String)localObject1) + "Cancel : <->\n";
localObject1 = ((String)localObject1) + "Big : <*>\n";
localObject1 = ((String)localObject1) + "Small : </>\n";
(localObject2 = new JTextArea((String)localObject1)).setEditable(false);
((JTextArea)localObject2).setBackground(UIManager.getColor("JDialog.background"));
localObject3 = new Font("Courier New", 0, 12);
((JTextArea)localObject2).setFont((Font)localObject3);
JOptionPane.showMessageDialog(null, localObject2, "", 1);
return;
}
(localObject1 = new b(this)).pack();
xl.a((Container)localObject1, this);
((b)localObject1).show();
return;
}
if (paramActionEvent.getSource().equals(this.S))
{
(localObject1 = new ExtraBonusDialog(this, "EXTRA BONUS", true)).show();
return;
}
if (paramActionEvent.getSource().equals(this.K))
{
if (lx.aS == 3)
{
localObject1 = "";
localObject1 = ((String)localObject1) + "Tangkas Client v2.4.0\n";
localObject1 = ((String)localObject1) + "Copyright ? 2004-2006\n";
localObject1 = ((String)localObject1) + "Tangkas888.net\n";
localObject1 = ((String)localObject1) + "\n";
localObject1 = ((String)localObject1) + "Logged as " + lx.k + "\n";
localObject1 = ((String)localObject1) + "Credits : " + (lx.q + lx.s) + "¢";
(localObject2 = new JTextArea((String)localObject1)).setEditable(false);
((JTextArea)localObject2).setBackground(UIManager.getColor("JDialog.background"));
localObject3 = new Font("MS Reference Sans Serif", 0, 12);
((JTextArea)localObject2).setFont((Font)localObject3);
JOptionPane.showMessageDialog(null, localObject2, "", 1);
return;
}
(localObject1 = new w(this)).a(lx.k);
((w)localObject1).pack();
((w)localObject1).a(lx.q + lx.s);
xl.a((Container)localObject1, this);
((w)localObject1).show();
return;
}
if (paramActionEvent.getSource().equals(this.D))
{
a("press play menu");
return;
}
if ((paramActionEvent.getSource() == this.E) || (paramActionEvent.getSource().equals(this.N)) || (paramActionEvent.getSource().equals(this.O)) || (paramActionEvent.getSource().equals(this.P)) || (paramActionEvent.getSource().equals(this.Q)))
{
if (paramActionEvent.getSource().equals(this.Q))
this.d = ((paramActionEvent.getSource().equals(this.P)) ? 2 : (paramActionEvent.getSource().equals(this.O)) ? 1 : (paramActionEvent.getSource().equals(this.N)) ? 0 : 3);
a("play Item");
if ((lx.s > 0) || (lx.p != -1));
lx.bs.f.setText(" ");
if ((lx.q <= 0) && (lx.s <= 0))
lx.bs.f.setText("No deposit!");
lx.bs.a(this.d);
lx.bs.show();
return;
}
if (paramActionEvent.getSource().equals(this.L));
if (paramActionEvent.getSource().equals(this.M))
{
a("Sound Off");
this.h.e(0);
}
}
public final void b(boolean paramBoolean)
{
if (this.i == null)
this.i = new l(this);
this.i.pack();
xl.a(this.i, this);
if (!(paramBoolean))
this.i.s.setEnabled(false);
this.i.show();
}
private void h()
{
if (!(this.b.isShowing()))
this.b.show();
}
public final void b()
{
this.k.pack();
xl.a(this.k, this);
if (lx.aS == 1)
this.k.setModal(true);
this.k.show();
this.k.requestFocus();
}
private void d()
{
this.h.a();
}
public j(q paramq)
{
this.a = getLayeredPane();
this.h = new n(this);
this.i = null;
this.b = new C(this);
this.k = new i(this);
this.l = null;
this.m = null;
this.c = new g(this);
this.d = -1;
new BorderLayout();
this.n = new JMenuBar();
this.o = new JMenu();
this.p = new JMenuItem();
this.j = new JMenuItem();
this.q = new JMenu();
this.r = new JMenu();
this.s = new JMenuItem();
this.t = new JMenuItem();
this.u = new JMenuItem();
this.v = new JMenuItem();
this.w = new JMenuItem();
this.z = new JMenuItem();
this.A = new JMenu();
this.B = new JMenuItem();
this.C = new JMenuItem();
this.F = new JMenuItem("Deposit Confirm");
this.D = new JMenu();
this.E = new JMenuItem("Table List");
this.H = new JMenu("Sound");
this.L = new JMenuItem("On");
this.M = new JMenuItem("Off");
this.N = new JMenuItem("10c");
this.O = new JMenuItem("25c");
this.P = new JMenuItem("50c");
this.Q = new JMenuItem("100c");
this.G = new JMenu();
this.R = new JMenuItem("History");
this.I = new JMenuItem();
this.J = new JMenuItem();
this.S = new JMenuItem("EXTRA BONUS");
this.K = new JMenuItem();
BorderFactory.createLineBorder(UIManager.getColor("Button.background"), 3);
BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(UIManager.getColor("Button.background"), 2), BorderFactory.createEmptyBorder(0, 8, 0, 8));
new JLabel("TEST DOUBLE PURE A", 2);
a("in MainFrame() constructor");
this.e = paramq;
try
{
e();
}
catch (Exception localException2)
{
Exception localException1;
(localException1 = localException2).printStackTrace();
}
d();
}
private void e()
throws Exception
{
addWindowListener(this);
if (lx.aS != 3)
{
this.o.setMnemonic('F');
this.q.setMnemonic('V');
this.D.setMnemonic('P');
this.A.setMnemonic('B');
this.G.setMnemonic('H');
this.z.setMnemonic('O');
this.r.setMnemonic('Z');
this.w.setMnemonic('C');
this.B.setMnemonic('B');
this.C.setMnemonic('O');
this.F.setMnemonic('D');
this.E.setMnemonic('T');
this.R.setMnemonic('H');
this.I.setMnemonic('S');
this.J.setMnemonic('K');
this.S.setMnemonic('B');
this.K.setMnemonic('A');
this.p.setMnemonic('X');
this.j.setMnemonic('G');
this.H.setMnemonic('S');
this.L.setMnemonic('O');
this.M.setMnemonic('F');
}
setDefaultCloseOperation(0);
if (lx.c)
{
setIconImage(lx.aq);
setTitle(lx.bq);
}
setResizable(false);
this.j.setEnabled(false);
getContentPane().add(this.e);
this.o.setText("File");
this.j.setText("GANTUNG");
this.j.addActionListener(this);
this.p.setText("Exit");
this.p.addActionListener(this);
this.q.setText("View");
this.r.setText("Zoom Level");
this.s.setText("Small");
this.t.setText("Medium");
this.u.setText("Large");
this.v.setText("Extra Large");
this.w.setText("Change Password");
this.w.setEnabled(false);
this.z.setText("Options");
this.s.addActionListener(this);
this.t.addActionListener(this);
this.u.addActionListener(this);
this.v.addActionListener(this);
this.w.addActionListener(this);
this.z.addActionListener(this);
this.E.addActionListener(this);
this.N.addActionListener(this);
this.O.addActionListener(this);
this.P.addActionListener(this);
this.Q.addActionListener(this);
this.A.setText("Bank");
if (lx.aS == 3);
this.B.setText("Transfer to Bank");
this.C.setText("Transfer to other player");
this.B.setEnabled(false);
this.B.addActionListener(this);
this.C.addActionListener(this);
this.C.setEnabled(false);
this.F.addActionListener(this);
this.F.setEnabled(false);
this.D.setText("Play");
this.G.setText("Help");
this.I.setText("Send To Operator");
this.J.setText("Keyboard Layout");
this.K.setText("About");
this.R.addActionListener(this);
this.I.addActionListener(this);
this.J.addActionListener(this);
this.S.addActionListener(this);
this.K.addActionListener(this);
this.n.add(this.o);
this.n.add(this.q);
this.n.add(this.A);
if (lx.aS == 3)
{
this.D.add(this.N);
this.D.add(this.O);
this.D.add(this.P);
}
if (lx.aS == 4)
{
this.D.add(this.N);
this.D.add(this.O);
this.D.add(this.P);
}
((this.D.add(this.Q)) ? this.C : (this.D.add(this.Q)) ? this.I : this.D.add(this.E));
if (lx.aS == 1)
{
this.D.add(this.H);
this.H.add(this.L);
this.H.add(this.M);
this.L.addActionListener(this);
this.M.addActionListener(this);
}
this.n.add(this.D);
if (lx.aS != 3)
this.o.add(this.j);
this.o.add(this.p);
this.n.add(this.G);
if (lx.aS != 3)
this.G.add(this.R);
this.G.add(this.I);
this.G.add(this.J);
if (lx.aS == 2)
this.G.add(this.S);
this.G.add(this.K);
setJMenuBar(this.n);
this.q.add(this.r);
this.q.add(this.w);
this.q.add(this.z);
((lx.aS == 4) ? this.p : this.r.add(this.s));
this.r.add(this.t);
this.r.add(this.u);
if (lx.aS != 4)
this.r.add(this.v);
this.A.add(this.B);
this.A.add(this.C);
if (lx.aS == 1)
this.A.add(this.F);
addKeyListener(this);
}
public final void keyTyped(KeyEvent paramKeyEvent)
{
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -