I went off and started messing around and it seems that I messed up somehow. I'm attempting to place a JTextArea onto a JPanel as I usually do but it's not showing up; does anyone see where I messed up?

publicWindow() {JFramemainFrame = newJFrame();mainFrame.setSize(1024, 786);mainFrame.setLocationRelativeTo(null); //Centers the window on the users screen.mainFrame.setTitle("Temp Name");mainFrame.setDefaultCloseOperation(EXIT_ON_CLOSE); mainFrame.setResizable(false);insets = mainFrame.getInsets();mainFrame.setLayout(null); //Makes it so you can manually positon everything on the JPanel using XY coords.JPanelmainPanel = newJPanel(); //Creates a new JPanel to put everything on.mainFrame.getContentPane().add(mainPanel);

Standard Swing-fanatic disclaimer: It's really preferable to use a LayoutManager rather than null layout, as then your UI could be designed to allow the window to be resizable and still look nice, not to mention handling different LookAndFeels having different widget sizes, the user's desktop settings, etc.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org