I'm creating a GUI in Java using a JFrame, JPanel, JBUtton, and two JLists. When I create the GUI the JFrame appears, along with the JPanel and JButton, but the two JLists don't.
I'm using an absolute layout manager (null) which i think is part of the problem, however I kind of need to use an absolute layout manager.
Here is parts of the code
public class Display extends JFrame {
    protected JPanel mPanel;
    protected JList mGradingList;
    protected JList mCompletedList;
    protected JButton mButton;
    public Display() {
        this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        this.setSize(640, 320);
        this.setResizable(false);
        this.setLocationRelativeTo(null);
        mPanel = new JPanel(null);
        this.add(mPanel);
        //<more code>
        mCompletedList = new JList();
        mCompletedList.setBorder(new CompoundBorder(
                BorderFactory.createLineBorder(new Color(122, 138, 152)),
                BorderFactory.createEmptyBorder(8, 8, 8, 8)
        ));
        mCompletedList.setBackground(new Color(254, 254, 255));
        mCompletedList.setBounds(mPanel.getWidth() - 210, 10, 200, mPanel.getHeight() - 20);
        mPanel.add(mCompletedList);
        this.setVisible(true);
    }
}
 
    