I'm trying to put a button on top of an image, but it's not working.
GridLayout frame = new GridLayout();
setLayout (frame);
panelOne.add(background);
btn.setLocation (200, 200);
panelOne.add(btn);
add(panelOne);
I'm trying to put a button on top of an image, but it's not working.
GridLayout frame = new GridLayout();
setLayout (frame);
panelOne.add(background);
btn.setLocation (200, 200);
panelOne.add(btn);
add(panelOne);