Results 1 to 2 of 2
  1. #1
    Scyth3 is offline Member
    Join Date
    Nov 2012
    Posts
    12
    Rep Power
    0

    Angry Java swing JTextArea

    Im trying to add a JTextArea to my JFrame with this code

    Java Code:
    JTextArea input = new JTextArea(100, 100);
    frame.add(input);
    I don't know why it won't work... Any clue?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: Java swing JTextArea

    You don't give us much to go on, and likely the problem lies on code not shown. Perhaps you've not changed the layout manager for the JFrame, and perhaps you've added other components to it which cover up the JTextArea?

    If you still need help, consider posting a small compilable and runnable bit of code that shows your problem in a nutshell, an SSCCE.

Similar Threads

  1. Swing JTextArea + JScrollPane question?
    By niba10 in forum AWT / Swing
    Replies: 3
    Last Post: 04-19-2011, 01:07 AM
  2. Java JTextArea/Field and String Help Needed!
    By Jcbconway in forum AWT / Swing
    Replies: 4
    Last Post: 09-16-2010, 01:15 AM
  3. Swing - Changing text in JTextArea from void
    By Lawllerskates in forum New To Java
    Replies: 4
    Last Post: 02-18-2010, 06:37 PM
  4. JTextArea on PopUp -JTextArea isn't editable
    By Richy76 in forum AWT / Swing
    Replies: 3
    Last Post: 02-01-2010, 08:51 PM
  5. How to add JTextArea in JTable - Swing
    By phungho2000 in forum AWT / Swing
    Replies: 5
    Last Post: 12-17-2008, 10:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •