bare søg efter 'jad' på google det er nok :)
Her er koden:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page:
http://kpdus.tripod.com/jad.html// Decompiler options: packimports(3)
// Source File Name: GMTclock.java
import java.applet.Applet;
import java.awt.*;
public class GMTclock extends Applet
implements Runnable
{
public void stop()
{
if(me != null)
{
me.stop();
me = null;
}
}
public void paint(Graphics g)
{
paintBack(g);
}
public GMTclock()
{
speed = 1000;
me = null;
borderW = 5;
borderH = 5;
}
public void update(Graphics g)
{
paint(g);
}
public void start()
{
if(me == null)
{
me = new Thread(this);
me.start();
}
}
private void loadImages()
{
tracker = new MediaTracker(this);
worldMapImage = getImage(getCodeBase(), "world.gif");
tracker.addImage(worldMapImage, 0);
}
public void paintBack(Graphics g)
{
g.setColor(Color.lightGray);
g.fillRect(0, 0, dim.width - 1, dim.height - 1);
g.draw3DRect(1, 1, dim.width - 3, dim.height - 3, true);
g.draw3DRect(2, 2, dim.width - 5, dim.height - 5, true);
g.setColor(Color.black);
g.drawRect(0, 0, dim.width - 1, dim.height - 1);
}
public void run()
{
try
{
tracker.waitForID(0);
}
catch(InterruptedException e)
{
return;
}
if(!map.isInitialized())
{
map.initializeMap(worldMapImage);
control.setGMTzone(map.getGMTzone());
}
for(; Thread.currentThread() == me; digital.repaint())
try
{
Thread.sleep(speed);
}
catch(InterruptedException e) { }
}
public void init()
{
dim = size();
setBackground(Color.lightGray);
loadImages();
initPanels();
}
public boolean handleEvent(Event e)
{
if(e.target.equals(this))
{
if(e.id == 10)
{
control.setGMTzone((double)e.key / 60D);
digital.setGMTzone((double)e.key / 60D);
return true;
}
if(e.id == 20)
{
map.setGMTzone((double)e.key / 60D);
digital.setGMTzone((double)e.key / 60D);
return true;
}
}
return false;
}
private void initPanels()
{
int tmp = dim.width - borderW * 2;
mainPanel = new Panel();
mainPanel.setBackground(Color.green);
mainPanel.setLayout(new BorderLayout());
add(mainPanel);
map = new WorldMap(tmp);
digital = new DigitalClock(tmp);
control = new GMTcontrol(getCodeBase(), "gmtlist.dat", tmp);
mainPanel.add("North", map);
mainPanel.add("Center", digital);
mainPanel.add("South", control);
}
private Dimension dim;
private int speed;
private Thread me;
private int borderW;
private int borderH;
private Panel mainPanel;
private Image worldMapImage;
private WorldMap map;
private MediaTracker tracker;
private DigitalClock digital;
private GMTcontrol control;
}