View Single Post
  #5 (permalink)  
Old 05-10-2008, 04:18 AM
terox13 terox13 is offline
Member
 
Join Date: May 2008
Posts: 6
terox13 is on a distinguished road
If I replace add(text) and add(scroll) with
Code:
getContentPane().add(scroll); this.setDefaultCloseOperation(3);
the JTextArea doesn't appear in the frame. I just want to have a JTextArea that I can put anywhere inside the frame with a scrollbar. I'm not very familiar with the concepts of constructing a GUI, such as the container. I would appreciate any help such as code on how to do this or a site where I can learn. I've been searching and searching and haven't found one that works for me. Thanks for you're help.
Reply With Quote