Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use a flag
set it to 'true' just before opening the HTML page.
 
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!