BBjWindow::addWrappedJComponent

Description

In BBj 7.0 and higher, this method creates a BBjWrappedJComponent in the BBjWindow.

Syntax

Return Value

Method

BBjWrappedJComponent

addWrappedJComponent(int ID, number x, number y, number w, number h,ClientObject jComponent)

Parameters

Variable

Description

ID

Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window.

jComponent

A ClientObject that is associated with a client-side JComponent

x

Horizontal position of the upper-left corner of the control in current units.

y

Vertical position of the upper-left corner of the control in current units.

width

Width of the control in current units.

height

Height of the control in current units.

 

Return Value

Returns a BBjWrappedJComponent; an Object that is both a ClientObject and a BBjControl. The methods of BBjControl can be invoked on this ClientObject and the methods of the wrapped JComponent can also be invoked on this Object.

Remarks

The ClientObject that is passed into this method must be associated with a JComponent on the client.

Example

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

ClientObject Tutorial

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.