[Solved] Mouse event handling in Swing

Add an actionlistener to your JButton and it will tell you when its been clicked like so: someButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { //the button was pressed and do your stuff here. } } 3 solved Mouse event handling in Swing

[Solved] how to programme an eye tracking based computer mouse in C++

You can use a port of BGI library for Windows (WinBGIm). Here’s a link to a general idea of how to do it (sample project in VS2010). Project: http://muhammadallee.pbworks.com/w/file/53399106/WinBGIm-Demo.zip (You would need to go to Project Properties->Linker->Input and correct the path of the lib file there. Alternatively, use this project: http://www.cs.colorado.edu/~main/bgi/visual/BGI2010.zip Documentation:http://www.cs.colorado.edu/~main/bgi/doc/ It will use … Read more