Sarah Jane wrote:Also the vertical scrollbar doesn't seem to show up, despite me setting it to ALWAYS visible.
Paul Clapham wrote:I suspect this means that the scroller component isn't visible at all. (That would explain why you don't see any text when you change the JTextArea inside that scroller.)
So, you were writing networking code, and you casually decided to throw in a little GUI to test it, and now the little GUI isn't as simple as you thought it would be. If I'm not mistaken the default layout manager is a BorderLayout. It looks like you've added all of your components into the same part of the BorderLayout, which isn't the right thing to do. But let me move this post over to the Swing forum, where people who are actually good at Swing hang out.
I just copied what was in the book, Head First Java, 2nd Edition. I'm sure there's more efficient ways to make this stuff, but this is my first programming language I'm learning so it'll be awhile before I worry about that.
Charles Burton wrote:On lines 35 -36 try adding them to the main panel with some kind of layout. I think your objects are getting stacked on top of eachother, sorry I can't test it for you the computer I'm using doesn't have a JDK. It should look something like this.