Class has moved onto adding buttons onto the window. Just prior to this we learnt to add an image via JComponent, then we added buttons onto a JPanel; the problem is that when I try to combine the two into a single window (my own desire, not part of the class) I completely lose whatever is added first. How can I add the buttons so that both the button and the graphic are visible (buttons on top of the graphic)?
The default layout manager for a frame is the BorderLayout. Where do components get added when you don't specify a constraint? What do you think happens when you try to add two components at the same place?
Either use proper constraints or use a different layout manager.