[Solved] How do I dynamically resize a text component in Java Netbeans, when the text has filled the component, instead of it having scroll bars?

How do I dynamically resize a text component in Java Netbeans, when the text has filled the component, instead of it having scroll bars? solved How do I dynamically resize a text component in Java Netbeans, when the text has filled the component, instead of it having scroll bars?