I am having trouble getting two different components to display at the same time.
public class BandViewer
{
public static void main(String[] args)
{
JFrame frame = new JFrame();
frame.setSize(1000, 800);
frame.setTitle("band");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
BandComponent component = new BandComponent();
ConcertBackground component1 = new ConcertBackground();
frame.add(component);
frame.add(component1);
frame.setVisible(true);
}
}
Now I read on this forum that you can do something to display both at the same time but wasn't able to figure out how it was done. Can anyone please help? I want to have one to be in front of the other. Is their some way to control the layering? Thanks in advance.