How to add buttons to an image using the netbeans IDE?

advertisements

I am using netbeans as an IDE to make my desktop application.

I have to add 3 buttons over an image. How do I do that? I have been unable to do this using the drag and drop features of netbeans.


Put the buttons in a custom panel with an image background (example here).

In IDE use a regular JPanel and drag the JButtons over it, then change the code from JPanel to ImagePanel (or whatever name you used for it).