Search:

Type: Posts; User: The_Mexican

Search: Search took 0.08 seconds.

  1. Replies
    10
    Views
    4,181

    Re: Expanding JTextArea

    Ah, thanks a lot!
  2. Replies
    10
    Views
    4,181

    Re: Expanding JTextArea

    Ah, missed that. Here's a little edited part of the code:


    import java.awt.Container;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import...
  3. Replies
    10
    Views
    4,181

    Re: Expanding JTextArea

    The only place where I define the size of the JTextArea is in the line where I initiate it:

    JTextArea textField = new JTextArea("", 15, 40);


    Removing that makes the JTextArea very small, and...
  4. Replies
    10
    Views
    4,181

    Re: Expanding JTextArea

    There is no scrollbar.

    EDIT: Just to make it clear, everything else is working fine, no errors, it's just that the scrollbar isn't showing up.
  5. Replies
    10
    Views
    4,181

    Re: Expanding JTextArea

    Thanks, that makes sense. However, now a problem with the JScrollPane...nothing is showing up. Here is my code:


    TextArea textField = new JTextArea("", 15, 40);
    textField.setLineWrap(true);...
  6. Replies
    10
    Views
    4,181

    Expanding JTextArea

    Hey guys, I have a problem where my JTextArea is expanding when I type off the given space. Both in height and width. I've tried setMaximumSize, setSize, setColumns, setRows, and other methods. None...
Results 1 to 6 of 6