/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Sample applet panel class. The panel manages and manipulates the
* applet as it is being loaded. It forks a seperate thread in a new
* thread group to call the applet's init(), start(), stop(), and
* destroy() methods.
*
* @author Arthur van Hoff
*/
/* Are we debugging? */
static boolean debug = false;
/**
* The document url.
*/
/**
* The base url.
*/
/**
* The attributes of the applet.
*/
/*
* JDK 1.1 serialVersionUID
*/
/**
* Construct an applet viewer and start the applet.
*/
this.documentURL = documentURL;
att += "/";
}
try {
} catch (MalformedURLException e) {
}
}
try {
} catch (MalformedURLException e) {
}
}
}
// when all is said & done, baseURL shouldn't be null
}
/**
* Get an applet parameter.
*/
}
/**
* Get the document url.
*/
return documentURL;
}
/**
* Get the base url.
*/
return baseURL;
}
/**
* Get the width.
*/
public int getWidth() {
if (w != null) {
}
return 0;
}
/**
* Get the height.
*/
public int getHeight() {
if (h != null) {
}
return 0;
}
/**
* Get initial_focus
*/
public boolean hasInitialFocus()
{
// 6234219: Do not set initial focus on an applet
// during startup if applet is targeted for
// JDK 1.1/1.2. [stanley.ho]
if (isJDK11Applet() || isJDK12Applet())
return false;
if (initialFocus != null)
{
return false;
}
return true;
}
/**
* Get the code parameter
*/
return getParameter("code");
}
/**
* Return the list of jar files if specified.
* Otherwise return null.
*/
return getParameter("archive");
}
/**
* Return the value of the object param
*/
}
/**
* Get the applet context. For now this is
* also implemented by the AppletPanel class.
*/
return (AppletContext)getParent();
}
if(debug)
}
if(debug) {
t.printStackTrace();
debug(s);
}
}
}