Hey, I'm almost done my long program that I've been working on all week, but I'm stuck on this tiny problem where I can't seem to add more than one shape component inside a frame at the same time.
final Rectangle recComp = new Rectangle();
final Ellipse ellipseComp = new Ellipse();
frame.add(recComp,BorderLayout.CENTER);
frame.add(ellipseComp,BorderLayout.CENTER);
The "frame.add()" that comes last is the only one that appears when I run the program, so how can I include them all?
Thanks.