On 11/22/2002 3:19 AM, Remus Stratulat wrote:

On Fri, 2002-11-22 at 10:00, Michael Scanlon wrote:

Hi,

I have a pair of questions:

1. Is anyone working on the bug mentioned below?
I really don't think that's anyone working on webclient right now. I
made a search on cvs and found that since 10 aug (1.2 release) almost
nothing has been done to it. I could be wrong (I hope).

The principal maintainer of Webclient is someone named Ed Burns ([EMAIL PROTECTED]). You'll see this name in a lot of Webclient bugs and he does post to the mozilla-java and mozilla-embedding lists. It seems the way Ed works is he disappears off the radar for a few months, only to reemerge with a new version of Webclient. I can't say the development is as active as I'd like it to be, but it is active. I would assume he's quite busy and I'm grateful he makes time to work on it. I'd contribute, but I don't have the time to get familiar with its inner-workings. A lot of the Java-Mozilla interactions projects (collectively known as Blackwood) were very promising, but most seem to have faded away.


I would love to help out on solving it, but I believe it may be slighly beyond my reasources right now. If it's already been solved or worked around can someone point me in the right direction.


I found a work around to this problem. It seams that all the ancestors
of the BrowserControlPanel must be initialized before you can add it an
a JPanel. Practically the parent JPanel must be initialized and drew on
the interface before you can add BBC. This impose a limitation, you can
not make all the BBC init in the JPanel constructor. You first must
instanciate the JPanel, added on its parent and after that call some
initBrowser() method that will initialize and add the BBC on the JPanel
(I was talking here about a class that extends JPanel).
Of course you will deal with heavy-light component mix problem, but
that's a minor one.
This is interesting. I've never tried this.


2. I've messed around a little with embedding Internet Explorer in java apps and after much digging found a problem. It can only be put on heavyweight widgets (Frame, Panel etc). Lightweight widgets like a JPanel and JTabbedPane cannot be done. Would there be a similar issue to this using Mozilla, since it seems to be the same process, i.e. loading a native app onto a Java surface?

This is an issue. Our application originally used all Swing, but we found that sometimes Mozilla's Canvas "overlapped" the buttons and they could not be clicked on. There is information on this somewhere on the Java Web site and it has come up on the mozilla-java newsgroup, but we ultimately switched to using AWT buttons in the Frame in which Mozilla is embedded. Other parts of the app use Swing. There are some toolkits out there that can give some of the Swing features to AWT buttons, such as the Graphic Java Toolkit (included with a book on graphics) and some UI toolkit from the Eclipse project whose name I don't remember.

Any information on these questions would be most welcome, as I'm currently writing a program that makes use of webpages heavily, but browsing isn't its primary purpose.

Michael Scanlon


Michael Epstein wrote:

First off, to the embedding and java newsgroup members, where do questions for Java Webclient belong? It's related to both Java and embedding.

With regard to instantiating a BrowserControlCanvas in a JPanel, it looks like this is related to http://bugzilla.mozilla.org/show_bug.cgi?id=82134. You may have to instantiate in a Frame or JFrame until that bug is resolved.

On 11/14/2002 3:19 AM, Remus Stratulat wrote:


I want to embed BrowserControlCanvas in a JPanel to obtain a component
that will be further added on a interface.
I have this problem: when adding the BCC on a JFrame I get:

{quote}

+++ In appInitialize - after createWrapperFactory +++

native library does implement webclient.WindowControl
Type Manifest File: $MOZILLA/dist/bin/components/xpti.dat
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded

{/quote}

and everything goes ok.

If I add BCC on a JPanel:

{quote}

+++ In appInitialize - after createWrapperFactory +++

native library does implement webclient.Navigation
native library does implement webclient.WindowControl
native library does implement webclient.CurrentPage
native library does implement webclient.EventRegistration
org.mozilla.util.AssertionFailureException
Type Manifest File:
/home/strem/work/mozilla/dist/bin/components/xpti.dat
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded


{/quote}

and everything crashes.

Now what I do wrong? Can BCC be embeded only in a Frame? I don't think
so. I guess it needs some informations that are provided by Frame but
not by other comps.

Thanks,
Remus Stratulat










Reply via email to