Skip to main content


1 reply [Last post]
Joined: 2003-06-11

Are there any known workarounds/tricks for
getting the Webclient AWT component
to integrate with / be used with a Swing application?
I want the Html rendering on a JPanel as a content

Any thoughts / suggestions for getting this working?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-16

Sorry it took so long for us to answer. I was trying to get a recent build of webclient for Linux setup so that I can play with it to see what kind of issues you may run into.

The main thing about WebClient is that the BrowserControlCanvas which is the class where the rendering happens (as far as I can tell) is really just a subclass of AWT canvas. So all the issues that apply to embedding a HW component in a LW component apply to this scenario.

Please refer to the HW/LW mixing document written by Amy Fowler :

This article highlights the problem areas. As long as you
avoid these problem areas, you should be OK.

One of the frequently asked features in AWT is to solve the LW/HW mixing issue. We thought about using the Shape
extension to do shape clipping such that LW/HW mixing is
no longer a problem. Unfortunately this feature did not
make it into Tiger due primarily to resource limitations.
But this may be possible in a future release. But for the
moment as long as you stick to the guidelines in the above
document, it is possible to get this working well.

I hope this was of some help, if you try this and run into
more issues, please post on this board and we will try to help you out.