This week's book giveaways are in the Scala and Android forums. We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line! See this thread and this one for details.
I'm having a lot of trouble getting a custom JComponent to scroll inside a JScollPane. I can only scroll if the mouse pointer is over the scroll bars, when I move the pointer into the JViewport (or whatever it's called) I can no longer scroll.
I've launched the 1st demo on the How to Use Scroll Panes pages and obviously it does what you'd expect. I noticed that this example uses an extension of JLabel (called ScrollablePicture). I've also noticed that this example still works if the ScrollablePicture class doesn't implement Scrollable and MouseMotionListener.
So I decided to do something similar to that but my program persistently refuses to work