I'm trying to print something when the mouse button is clicked while the Java program is running. As far as I've seen, the MouseListener
requires a Java Swing component, but I don't want to create an interface in which to click.
Note: I'm trying to print some Rhapsody diagrams when the mouse button is clicked and I can't do this if I have to click inside a Frame.