jframe.setLayout(new BorderLayout()); jframe.getContentPane().add(jTextArea1, java.awt.BorderLayout.CENTER);