public void init(Object parent, Object strURL)
    {
        super.init(parent, strURL);
        
        this.setLayout(new BorderLayout());

        BaseApplet applet = null;
        if (strURL instanceof BaseApplet)
            applet = (BaseApplet)strURL;
        if (applet == null)
            applet = this.getBaseApplet();
        URL url = null;
        String path = null;
        if ((strURL instanceof String) && (((String)strURL).length() > 0))
            path = strURL.toString();
        else if (strURL instanceof URL)
            url = (URL)strURL;
        else if (applet != null)
            path = applet.getProperty(Params.URL);
        //System.out.println("URL: " + path);
        if ((url == null) && (path != null))
            url = JHtmlView.getURLFromPath(path, applet);

        if (applet == null)
            applet = BaseApplet.getSharedInstance();
        m_editorPane = new JHtmlEditor(applet, url);
        m_editorPane.setOpaque(false);

        JScrollPane scrollpane = new JScrollPane();
        scrollpane.setOpaque(false);  // If no background, show mine.
        scrollpane.setAlignmentX(Component.LEFT_ALIGNMENT);
        scrollpane.setPreferredSize(new Dimension(10,10));
        JViewport vp = scrollpane.getViewport();
        vp.setOpaque(false);
        vp.add(m_editorPane);
        this.add(scrollpane, BorderLayout.CENTER);
    }
public void init ( Object parent , Object strURL ) { super . init ( parent , strURL ) ; this . setLayout ( new BorderLayout ( ) ) ; BaseApplet applet = null ; if ( strURL instanceof BaseApplet ) applet = ( BaseApplet ) strURL ; if ( applet == null ) applet = this . getBaseApplet ( ) ; URL url = null ; String path = null ; if ( ( strURL instanceof String ) && ( ( ( String ) strURL ) . length ( ) > 0 ) ) path = strURL . toString ( ) ; else if ( strURL instanceof URL ) url = ( URL ) strURL ; else if ( applet != null ) path = applet . getProperty ( Params . URL ) ; if ( ( url == null ) && ( path != null ) ) url = JHtmlView . getURLFromPath ( path , applet ) ; if ( applet == null ) applet = BaseApplet . getSharedInstance ( ) ; m_editorPane = new JHtmlEditor ( applet , url ) ; m_editorPane . setOpaque ( false ) ; JScrollPane scrollpane = new JScrollPane ( ) ; scrollpane . setOpaque ( false ) ; scrollpane . setAlignmentX ( Component . LEFT_ALIGNMENT ) ; scrollpane . setPreferredSize ( new Dimension ( 10 , 10 ) ) ; JViewport vp = scrollpane . getViewport ( ) ; vp . setOpaque ( false ) ; vp . add ( m_editorPane ) ; this . add ( scrollpane , BorderLayout . CENTER ) ; }
Initialize the HTMLView window.
@param parent The parent screen/applet.
@param strURL The initial URL (otherwise, you should supply the URL with the properties).