Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.awt   Previous This
Package
Next

 


Interface HeavyComponent

public interface HeavyComponent
{
  // Methods
  public boolean needsHeavyPeer();
}

This interface is implemented by Java classes that require a Microsoft® Win32® system window (an HWND) for operations that access the native operating system. Java applets and applications that interact with the native system can use this interface with a java.awt.Canvas object to request a system window.

The HeavyComponent interface is not cross-platform.

Currently, this interface only supports java.awt.Canvas objects. When a Canvas object that implements HeavyComponent is created, needsHeavyPeer is called to determine whether the Canvas object requires a Win32 window.

For example, the HeavyComponent interface is used by the Microsoft® ActiveX® component support.

Methods

needsHeavyPeer

public boolean needsHeavyPeer();

Called by the toolkit when creating the peer object for a Canvas that implements the HeavyComponent interface.

Note The HeavyComponent interface only supports java.awt.Canvas objects.

Return Value:

Returns true if the Java object requires a Win32 system window; otherwise, returns false.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.