📄 fejstmain.java
字号:
// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov Date: 15/2/2006 3:37:19
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: fejstmain.java
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import java.net.URL;
import java.util.EventObject;
import java.util.StringTokenizer;
public class fejstmain extends Applet
implements ActionListener
{
public void init()
{
String s = readbutton("Start");
setLayout(null);
add(bt = new Button(s));
bt.addActionListener(this);
Dimension dimension = getSize();
if(dimension.width == 0)
dimension.width = 70;
if(dimension.height == 0)
dimension.height = 20;
bt.setBounds(0, 0, dimension.width, dimension.height);
}
public void actionPerformed(ActionEvent actionevent)
{
if(actionevent.getSource() == bt)
{
if(w != null)
w.wclose();
int i = getParamint(810, "fwidth");
int j = getParamint(610, "fheight");
w = new fejstfrm(this, stttl);
Dimension dimension = getToolkit().getScreenSize();
dimension.height = dimension.height - 30;
if(i == 0)
i = dimension.width;
if(j == 0)
j = dimension.height;
if(dimension.width < 100)
dimension.width = i;
if(dimension.height < 100)
dimension.height = j;
if(dimension.width < i)
i = dimension.width;
if(dimension.height < j)
j = dimension.height;
w.setBounds((dimension.width - i) / 2, (dimension.height - j) / 2, i, j);
w.init(i, j);
}
}
public String readbutton(String s)
{
String s1 = "";
String s3 = "";
try
{
InputStream inputstream = inputstm();
InputStreamReader inputstreamreader = new InputStreamReader(inputstream);
BufferedReader bufferedreader = new BufferedReader(inputstreamreader, 64000);
bufferedreader.mark(64000);
String s2;
while((s2 = bufferedreader.readLine()) != null)
{
StringTokenizer stringtokenizer = new StringTokenizer(s2, ",", false);
if(!stringtokenizer.hasMoreTokens())
continue;
String s4 = stringtokenizer.nextToken();
if(!s4.equals("button") || !stringtokenizer.hasMoreTokens())
continue;
s = stringtokenizer.nextToken();
break;
}
inputstreamreader.close();
}
catch(IOException ioexception)
{
showStatus("Error :" + ioexception);
}
return s;
}
public AudioClip getAud()
{
return getAudioClip(getDocumentBase(), "kore.au");
}
public Image getI(String s)
{
MediaTracker mediatracker = new MediaTracker(this);
imgs = getImage(getCodeBase(), s);
mediatracker.addImage(imgs, 0);
try
{
mediatracker.waitForID(0);
}
catch(InterruptedException _ex) { }
return imgs;
}
public int getParamint(int i, String s)
{
int j;
try
{
j = Integer.parseInt(getParameter(s));
}
catch(NumberFormatException _ex)
{
j = i;
}
return j;
}
public InputStream inputstm()
{
InputStream inputstream = null;
String s = getParameter("imglist");
if(s == null)
s = "imgliste.txt";
try
{
inputstream = (new URL(getDocumentBase(), s)).openStream();
}
catch(IOException _ex) { }
return inputstream;
}
public fejstmain()
{
stttl = "Stereogram Maker Ver0.20";
}
int nf;
Button bt;
fejstfrm w;
Image imgs;
String stttl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -