Only one object will Render to Screen
问题 I'm trying to make it so that both squares appear on the JFrame but only the one that I make last in the main method apperas and the other one does not. Have been trying to figure this out for about 3 hours now and wanna smash my computer screen. Any help would be AWESOME. Thank you. public class Main extends JFrame{ static Main main; static Enemy square, square2; Render render; Main(){ render = new Render(); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(500,500);