A method and apparatus for enabling interactive programming and/or
development environments with the ability to dynamically host ActiveX
controls and Java components simultaneously in the same figure window is
provided. This type of hosting ActiveX controls is different from the
industry standard in that the ActiveX control can be chosen dynamically
at runtime. A Java container is disposed in a Java-based operating system
window. A plurality of Java canvases are configured in the figure window,
such that each Java canvas is supported by the Java container. A
plurality of components are positioned on the plurality of Java canvases.
Each of the plurality of components can be dynamically added and removed
from the plurality of Java canvases without re-creation of the operating
system window. Furthermore, at least one of the components does not
contain a Java class or a Java interface.