Home > Back-end >  Which parameter of this JTextArea should I change?
Which parameter of this JTextArea should I change?

Time:03-04

I'd like to know which parameter of my JTextArea I should change in order to remove this:

enter image description here

I want the text area to be blank and I don't want the possibility to navigate it with this brackets (?)

CodePudding user response:

If you want to prevent the Scroll Bars from appearing for a JTextArea then change the Horizontal and Vertical Scroll Bar Policies for the JScrollPane that wraps that JTextArea:

jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
  • Related