Hi,
I was just programming a GUI of my own and it all works, but I was wondering (after seeing the processWindowEvent method) if it is possible to DETECT a JFrame becoming inactive (ie. the user clicking on another window)?
I basically want this window to be always on top and always active (if that's possible) - so any attempts to switch applications would result in this JFrame to hide() then show() again - effectively bringing it back up to the front and making it active again...
So, if anyone has any ideas at all, PLEASE share them - I've been trying just about everything else to do this (continuously hide() and show()-ing the JFrame in a while loop, putting a massive screen coving JFrame behind it with a button that hide() and show()-s the main JFrame, etc). I figure this would be the easiest and best way to do this...
Any help is greatly appreciated,
Hansen Lechler napa1m
hansen@ithsite.com
I was just programming a GUI of my own and it all works, but I was wondering (after seeing the processWindowEvent method) if it is possible to DETECT a JFrame becoming inactive (ie. the user clicking on another window)?
I basically want this window to be always on top and always active (if that's possible) - so any attempts to switch applications would result in this JFrame to hide() then show() again - effectively bringing it back up to the front and making it active again...
So, if anyone has any ideas at all, PLEASE share them - I've been trying just about everything else to do this (continuously hide() and show()-ing the JFrame in a while loop, putting a massive screen coving JFrame behind it with a button that hide() and show()-s the main JFrame, etc). I figure this would be the easiest and best way to do this...
Any help is greatly appreciated,
Hansen Lechler napa1m
hansen@ithsite.com