Is it possible to make horizontal scrollbar not overlap code in Editor?

已回答

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

 

 

0

Hi Alexandr,

It is expected behavior. The scroll bar is a part of the editor panel, and it will be always inside.

0

Hi Karol,

 

Thank you! I found a workaround for my situation :)

0

请先登录再写评论。