I want to be able to navigate my way across a JPanel by using the mouse movement alone.
If for instance my desktop resolution (or JFrame/JPanel size) is 1280x1024 and my JPanel is 3000x3000, then when my mouse gets to the edge of the JFrame/JPanel, it should move/scroll towards the direction the mouse is going to.
If I set my mouse to the right edge of the screen, the view should shift to the right till I move my mouse back again.
Its like scrolling over a gamefield using the mouse to navigate.
Any ideas on how this could be done?