There is a problem with my JTextArea. When I write, it goes down the frame and I don’t know how to limit it so no more lines below the JFrame
Photo:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After much research I have found a solution! I’ve discovered that making a JTextArea scrollable is based on the design of the program. This link is what helped me to get my JTextPane to work and is what I will be using as a reference. This is not the only way to do this, but if you have any questions, don’t hesitate to ask! Thanks.
As stated by others, you need to wrap your JTextArea in JScrollPane
Define a constructor for your GUI
And your main method