aspose file tools
The moose likes Swing / AWT / SWT and the fly likes how to find out whether a particular HTML page is already opened ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "how to find out whether a particular HTML page is already opened ?" Watch "how to find out whether a particular HTML page is already opened ?" New topic
Author

how to find out whether a particular HTML page is already opened ?

Manikandan Adaikkalavan
Ranch Hand

Joined: May 17, 2002
Posts: 35
Hi,
Is it possible to find out the already opened HTML Pages in the Windows OS machine throu ' java ?
I am using Windows 2000.
why i am using this is....i am opening HTML files in IE throu my swing application.
I don't want to open again if it is already opened.
Thanks,
Manikandan
Shashi Kanta
Ranch Hand

Joined: May 08, 2002
Posts: 89
use a flag
set it to 'true' just before opening the HTML page.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

That works to a certain point... what if the user then closes the browser... how does the flag get reset? I don't think there is any way to have this degree of control over another application... The only way I could even think of doing this is waaaay to difficult for the results... using an applet in each page and have your Swing app listen for what applets are active... You could use RMI, Sockets, CORBA, JMS, etc. but I would think that the difficulty of doing this would be greater than the ability to make sure a page isn't launched...

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to find out whether a particular HTML page is already opened ?
 
Similar Threads
Problem in Opening HTML Page in Internet Explorer from my Swing Application
Closing a File via swing application ?
SWT system sounds
Open a File in disguise using Runtime.exec("Start file")
How to add a line break in a text file?