How to set the editor's background and overwrite the background image

val editorFactory = EditorFactory.getInstance()
val document = editorFactory.createDocument("abc...")
val editor = editorFactory.createViewer(document).apply {
backgroundColor = Color.RED
component.preferredSize= Dimension(300, 200)
}

JBPopupFactory.getInstance().createDialogBalloonBuilder(editor.component, null)
...

How to disable the editor' background image in Popup?

0

There's no API way of doing this for now.

The idea was to cover the whole frame with an image, so no exclusions.

 

0

请先登录再写评论。