I'm having some problems understanding how components are sized and I hope someone can help clear them up for me.
I have a panel which is using a BorderLayout. I have a panel in WEST and a panel in CENTER. The panel in CENTER contains a JScrollPane which contains a JTextPane. It seems like no matter what I do the scroll pane and the text pane all appear very small, about one line high and one character across. I want it to fill the entire region.
I am almost embarrassed to ask the question because I suspect it is very easy to solve, but I'm also new at Swing. Can anyone tell me what I need to do to get the component to fill up the region?