Re: Executing Java Code
<[email protected]> Mon, 10 Jul 2006 16:15:59 +0100
| Newsgroups | gmane.comp.mozilla.jrex |
|---|---|
| Message-ID | <[email protected]> |
Hi Jason, Mark and all,
I am new in JRex too, but maybe I can give my contribuition.
In order to use LiveConnect, you need to write two commands in your Java
code:
JRexLiveConnectSession lcSession = new
JRexLiveConnectSessionImpl(myWinManager.getBrowser(myPeerWindow));
lcSession.grantBrowserAccessToJVM();
Moreover, your Mozilla Gre should be Java plugin enabled.
Regards,
Guilherme Dutra
>
>
> "Jason Cecil" <jason.cecil-Re5JQEeQqe8AvxtiuMwx3w-XMD5yJDbdMReXY1tMh2IBg@public.gmane.org>
> escreveu na mensagem
> news:963b2b220606291416t324b7fddked491c63a1b48b2-JsoAwUIsXouq+1Nelnf3ueG/[email protected]
>> Hi Everyone,
>>
>> Let's say I want to use an html page (loaded in a JRex
>> frame/panel) as a configuration mechanism for the total Java
>> application. I would like to be able to change current values, or
>> choose a different item in a drop-down list, and have the application
>> reflect the changes. I guess I need some sort of event to be generated
>> when something is changed in the configuration page so that it can be
>> processed by the Java application. I'm not sure if I will have to use
>> Javascript, or which JRex API calls will be useful. I currently have a
>> JRex JFrame up with a desired html file loaded from hard disk. Can you
>> guys offer any suggestions as to how I might accomplish this setup?
>> I'm a bit rusty in Java since it's been a while... thanks so much for
>> any assistance.
>>
>> --
>> "Do, or do not. There is no try." - Jedi Master Yoda
>
>