- Oct 27, 2007
- 17,009
- 5
- 0
I'm new to Java programming and I have a specific problem I need help with. A method of mine takes a Rectangle object as a parameter which is fine. What I need is to be able to have the program take over the whole screen (but keep all other windows visible, the program should be invisible). The user can click and drag the mouse to create a rectangle and on pressing "enter" my method will be called with this rectangle as a parameter.
I'm not even sure where to start with this problem to be honest. I have read a bit about MouseListeners and I'll be pouring through the API tonight to figure something out. The main thing I need help with is how can I create this environment where all windows remain on screen but the mouse will not interact with any of them. If anyone has used Windows Vista's Snipping Tool (try it now if you have Vista and haven't seen it) they will know what I mean.
I'm not even sure where to start with this problem to be honest. I have read a bit about MouseListeners and I'll be pouring through the API tonight to figure something out. The main thing I need help with is how can I create this environment where all windows remain on screen but the mouse will not interact with any of them. If anyone has used Windows Vista's Snipping Tool (try it now if you have Vista and haven't seen it) they will know what I mean.
