Ah, thanks a lot!
Type: Posts; User: The_Mexican
Ah, thanks a lot!
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...
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...
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.
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);...
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...