JTable not showing up on JFrame (Java)
I'm having a problem with a JFrame not showing a JTable that is added to it. I've tried getContentPane().add(..) , I've switched to just add to keep the code a little shorter. Any help is more than appreciated! package com.embah.Accgui; import java.awt.*; import javax.swing.*; public class accCreator extends JFrame { private String[] columnNames = {"Username", "Password", "Members", "World"}; private Object[][] data = {{"b", "b", "b", "b"}, { "e", "e", "e", "e"}}; private JTable tbl_Accounts; private JScrollPane scrollPane; private JLabel lbl_Account = new JLabel(); private JLabel lbl_Username