On Thursday, February 13, 2003, at 12:25  PM, J Aaron Farr wrote:
I'm familiar with using a Swing Container, but what about a Swing component?
I'd like to have a component which is a Swing class, such as a JInternalFrame.
The container looks up the component and adds it do the larger Swing desktop
frame. Problem is, the component is a proxy class so I get
ClassCastExceptions. Is there any other way to do this?
You can modify Fortress to not proxy components (this will also remove the addition of the "Component" interface if your component does not have it already).

Create your own container (you can extend DefaultContainer) and override the createObjectFactory method. Use the same version that exists in AbstractContainer, just don't wrap the ComponentFactory in the ProxyObjectFactory.
-pete


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to