home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Container;
- import java.awt.GridLayout;
- import java.awt.Image;
- import java.net.MalformedURLException;
- import java.net.URL;
-
- public class LTIImageButton extends Applet {
- LTIButtonCls ltiButtonCls;
- int iInset;
-
- public void init() {
- String var1 = "";
- Image var2 = null;
- URL var3 = null;
- String var4 = "";
- var4 = ((Applet)this).getParameter("Frame");
- if (var4 == null) {
- var4 = "_self";
- }
-
- var1 = ((Applet)this).getParameter("Image");
-
- try {
- var2 = ((Applet)this).getImage(new URL(((Applet)this).getDocumentBase(), var1));
- } catch (MalformedURLException var6) {
- }
-
- var1 = ((Applet)this).getParameter("Link");
-
- try {
- var3 = new URL(((Applet)this).getDocumentBase(), var1);
- } catch (MalformedURLException var5) {
- }
-
- this.ltiButtonCls = new LTIButtonCls(this, var2, var3, var4);
- ((Container)this).setLayout(new GridLayout(1, 1, 0, 0));
- ((Container)this).add(this.ltiButtonCls);
- }
- }
-