Why can't I type in a JTextArea unless I resize the window?
<p>I've placed a JTextArea within a JFrame and come across an issue where I can only type within my JTextArea unless I resize the window. How can I get JTextArea to let me type as soon as the window runs without having to resize it?</p>

<pre><code>public class Frame extends JFrame{

    public Note() {
        this.setSize(new Dimension(1000, 1000));
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    public JScrollPane createContent(){
        JTextArea textArea = new JTextArea();
        JScrollPane scrollPane = new JScrollPane(textArea);
        this.add(scrollPane, BorderLayout.CENTER);
        return null;
    }
    public static void main(String[] args) {
        new Note();
        Note mainWindow = new Note();
    }
}
</code></pre>