home *** CD-ROM | disk | FTP | other *** search
- package com.sfs.iavazip.viewer;
-
- import com.sfs.debug.Debug;
- import com.sfs.html.HtmlViewer;
- import java.awt.BorderLayout;
- import java.awt.Container;
- import java.awt.Frame;
- import java.net.URL;
-
- public class htmlView extends Viewer {
- Frame parent;
- HtmlViewer html;
-
- public void setArgs(Frame var1, String var2) {
- URL var3 = null;
-
- try {
- String var4 = "file:///" + System.getProperty("user.dir") + "/";
- URL var7 = new URL(var4);
- var3 = new URL(var7, var2);
- Debug.Info(var3.toString());
- } catch (Exception var6) {
- this.flush();
- Debug.Info("error" + ((Throwable)var6).getMessage());
- ((Throwable)var6).printStackTrace(System.out);
- }
-
- this.html = new HtmlViewer(var3, false);
- if (this.html != null) {
- ((Container)this).add("Center", this.html);
- } else {
- Debug.Info("html is null");
- }
-
- ((Container)this).doLayout();
- }
-
- public htmlView() {
- ((Container)this).setLayout(new BorderLayout());
- }
-
- public void flush() {
- if (this.html != null) {
- ((Container)this).remove(this.html);
- this.html = null;
- }
-
- }
- }
-