Is it possible to make horizontal scrollbar not overlap code in Editor?
Answered
Hello,
I added an Editor to my JPanel and it works fine. But if a text is too long it will add a horizontal scrollbar and it's ok. But because a horizontal scrollbar takes place in Editor it also adds a vertical scrollbar and this vertical scrollbar is only for one line of code.
Is it possible to control how a vertical scrollbar will be displayed? For example, it does not take up space in Editor, but is below a source code?
For example
Please sign in to leave a comment.
Hi Alexandr,
It is expected behavior. The scroll bar is a part of the editor panel, and it will be always inside.
Hi Karol,
Thank you! I found a workaround for my situation :)