Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to check for non java applications are opened in Full screen mode?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I have to develop an application in java AWT/Swings, which will run on Windows XP and MAC OS (9+ and X).
One of the requirements is that I have to show some pop-ups from system tray on certain events from server(using web services).
Here condition is that if there is any application is running in full screen mode (for example : Movie, photo album, PPT or any other software), then I have to disable the display of the pop-up from system tray. By default the java system tray popups are always shown on top of any opened application, even over the applications which are running in fullscreen. Now I am not able to figure out that how can we check through java programming, if any non java (native) applciation is opened/running in full screen mode, so that I can disable my pop-ups.
I have searched hell lot of forums but no luck yet.
Last option which is available is that create a native language(c, c++) application and check for the full screen and then tell it to java applciation through JNI. But I do not want to go for that unless I find out there is no option available in Java.

Please help.Also though I know that Mac OS 9 is very old, I still need to develop application in it.

Thanks,
riddhi
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

While there are hackish (and platform-specific) ways to find out what other processes/applications are running, finding out whether they're in full-screen mode is not possible in Java. You'll need to use JNI.

Here's some info on using JNI with MRJ (the Java 1.1 implementation used on Mac OS 9), but I doubt you'll get that to work that way you envision. (Mind you, there's no technical reason why it couldn't work in pricinple, but that platform is so limited and obsolete, that that's my hunch.)
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic