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 / September 2005

Tip: Looking for answers? Try searching our database.

Retrieve Widnow Handle with Java

Thread view: 
v_gilmor@bellsouth.net - 30 Sep 2005 15:54 GMT
Hi All,

I want to retrieve the browser's window handle using a java application
running on W2k. I've read that i might have to use JNI but I'm not sure
where to start. Any Advice would be appreciated.
Andrew Thompson - 30 Sep 2005 16:28 GMT
> I want to retrieve the browser's window handle using a java application
> running on W2k. I've read that i might have to use JNI but I'm not sure
> where to start.

You might start by explaing what a browser's 'window handle' is.

Are you 'talking MS' at us?
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/win
dowsuserinterface/windowing/windows/windowreference/windowfunctions/getwindow.as
p
>
v_gilmor@bellsouth.net - 30 Sep 2005 19:41 GMT
I'm refering to a Application Window on a Microsoft OS. Every window
has a handle that makes that particular window unique. I want to know
how to make a call using java to the Win32 API to get a list of Window
Handles for a given Window.

Victor
Andrew Thompson - 30 Sep 2005 19:52 GMT
> I'm refering to a Application Window on a Microsoft OS. Every window
> has a handle that makes that particular window unique. I want to know
> how to make a call using java to the Win32 API to get a list of Window
> Handles for a given Window.

Thanks for clarifying.  Hopefully a JNI guru will
wander by soon, to give specific tips to advance
your project.

Have you had a look over the Java tutorial?
<http://java.sun.com/docs/books/tutorial/native1.1/>
Roedy Green - 30 Sep 2005 20:43 GMT
On 30 Sep 2005 07:54:11 -0700, v_gilmor@bellsouth.net wrote or quoted

>I want to retrieve the browser's window handle using a java application
>running on W2k. I've read that i might have to use JNI but I'm not sure
>where to start. Any Advice would be appreciated.

I am not quite sure what you mean by Window Handle.  You can peek out
of the Applet and look at the surrounding web page from your Applet.
See http://mindprod.com/jgloss/browser.html for how.

If you really are trying to get inside the guts of the browser for
some reason, you might read up the specs on how you write plug-ins for
the various browsers.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



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.