I'm using Netbeans 8.0 and I'm trying to create a graphical interface for a Java program. I have a large background image (a .png, 2000x1500 px, for instance) that needs a scrollbar, and I want to put position multiple text labels on top of the background image.
To put it differently, what I am attempting to do is position a JLabel (text) on top of another JLabel (image) and enclose the entire thing in a JScrollPane, like this.
I've tried many different layouts (including null layout and free design) with no success. Netbeans is only allowing me to enclose one JLabel in a JScrollPane, but not both. Am I using the correct approach?