BBjAppletProxy::addFrame
Description
In BBj 2.02 and higher, this method displays a specified URL in a frame within the Applet.
Syntax
Return Value |
Method |
---|---|
void |
addFrame(int x, int y, int width, int height, string URLName, string frameName) |
Parameters
Variable |
Description |
---|---|
x |
Specifies the horizontal position of the upper-left corner of the control in current units. |
y |
Specifies the vertical position of the upper-left corner of the control in current units. |
width |
Specifies the width of the control in current units. |
height |
Specifies the height of the control in current units. |
URLName |
An absolute URL to be displayed in frame. |
frameName |
A name for the frame that can later be used in removeFrame(). |
Return Value
None.
Remarks
In order to display a given URL, the Applet must have security permissions to connect to the host that is providing that URL. The default SecurityPolicy that is in effect in a browser will only allow an Applet to connect to the host from which the Applet was downloaded. In order to be able to display arbitrary URLs using addFrame(), the SecurityPolicy must be edited to add the permission:
java.net.SocketPermission "*", "resolve"
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.