Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

listen to an existing browser

Thread view: 
Breaststroker - 31 Mar 2006 17:56 GMT
I am working on an existing implementation which uses

Runtime.getRuntime().exec("rundll32 url.dll, FileProtocolHandler " +
                                 "http://www.login.website");

To point to an url when a user has performed an action on the Java
Application in Windows OS.  There is a chance that this browser will be
behind the Java Application.  Note the task manager has been disabled
in the Java Application.  In order to bring it back, I need to either
create a console so that the user can toggle between the Java
Application and the browser or I will need to be able to bring the same
browser back without pointing to "http://www.login.website" all the
time.  I did some search online and found someone mentioned something
about browser plug in.  I do not have much experience on developing a
browser plug in and like to do it as soon as possible.  Anyone has any
suggestion.

Thanks,

Breaststroker
ducnbyu@aol.com - 31 Mar 2006 21:46 GMT
You might want to reconsider the browser plug-in.  Actually it's a
control.  I understand your misgivings, but the control will allow you
much greater control over the browser.

The drawback with the control is it only gives you the webpage.  The
user will be able to click on hyperlinks, enter text or what ever you'd
normally do on the displayed pages.  However, if you want the user to
be able to see or type in a url you have to provide a text control with
the appropriate listeners.  If you want the user to be able to go back
or forward you have to provide the buttons with the appropriate
listeners.  Etc.  For the operations most commonly performed by a user
such as the ones just mentioned they are simple to build.

If reliability is a strong requirement the browser control is the way
to go.

If it is very important that the user be able to do all the things they
can (but rarely) do in IE for example (changing their security
settings) then your original approach is the better way to go.

Here's a link to a browser control that is simple to use:

http://help.eclipse.org/help31/nftopic/org.eclipse.platform.doc.isv/reference/ap
i/org/eclipse/swt/browser/Browser.html


It works with SWT but there is also this class that will allow you to
use SWT in AWT and vice-versa (I haven't used this yet, but it looks
good)

http://help.eclipse.org/help31/nftopic/org.eclipse.platform.doc.isv/reference/ap
i/org/eclipse/swt/awt/SWT_AWT.html
:


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.