0

How can I deactivate/avoid lines being wrapped around inside a JTextPane?

This is what usually will happen once I enter text into the pane and the horizontal space is not enough:

enter image description here

I would like to avoid the second line and continue writing in one single line (even without a scroll bar) where I can navigate using the arrow keys (left/right).

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
PIC-Nico
  • 49
  • 9

0 Answers0