I was wondering how does one put spacing and set the size of a JTextArea component in Java.
eg
//I've tried
questInfo = new JTextArea(20,30);
questInfo.setMargin(new Insets(10,10,10,10));
When I preview the gui, It just shows JTextArea filling in the pane from top to bottom and left to right, no spacing in between the pane