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).
> 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.
> 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?
>
> 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
> >>
> >>
> >>
> >>
> >>
> >
> >
--
/**
* Remus Stratulat - KrysalIDE maintainer
* InterAkt Online.
*
* @web http://www.interakt.ro
*/