Unable to use scrollpane

Hello,I'm trying to make a JTextArea scrollable, but i'm not getting it to work. On other sites people recommend using a JScrollpane, however i can't seem to add this to my jFrame, because this will lead to a nullpointerexception.There was one similair case, however this thread had not been answered: http://devnet.jetbrains.com/message/5276825#5276825. I have used the build in GUI designer in intellij.Included are my main file, the forms file and the java file generated with the forms file. Thank you so much in advance!

Attachment(s):
DebugForm.form.zip
DebugForm.java.zip
Main.java.zip
2 comments

Hello.

Would you like to scroll the inputTextArea? I've opened the form in designer, applied "Surround with JScrollPane" quick fix, and it works.

If the problem with NPE persists, please attach the form that causes that NPE.

Regards,
Alexander.

0

ehh didn't know i had to do that in order to fix it lol. Haven't got that much experience yet in the intellij gui editor.

Thanks a lot!  surround with jscrollpane sure did the job :)

0

Please sign in to leave a comment.