aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to check for non java applications are opened in Full screen mode?    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to check for non java applications are opened in Full screen mode?    " Watch "How to check for non java applications are opened in Full screen mode?    " New topic
Author

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

riddhi bhatt
Greenhorn

Joined: Jul 09, 2008
Posts: 12
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41489
    
  53
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.)


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check for non java applications are opened in Full screen mode?