From 0ffca3bcef48a20e8e27e12728c33ff49d346720 Mon Sep 17 00:00:00 2001 From: Ingo Kegel Date: Mon, 12 Oct 2020 16:26:19 +0200 Subject: [PATCH] Fixed wrong scroll pane border of key-value panels in IntelliJ IDEA --- .../src/main/kotlin/browser/detail/KeyValueDetailPane.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/browser/src/main/kotlin/browser/detail/KeyValueDetailPane.kt b/modules/browser/src/main/kotlin/browser/detail/KeyValueDetailPane.kt index 838cb8f9..74b2b116 100644 --- a/modules/browser/src/main/kotlin/browser/detail/KeyValueDetailPane.kt +++ b/modules/browser/src/main/kotlin/browser/detail/KeyValueDetailPane.kt @@ -20,12 +20,16 @@ import javax.swing.AbstractAction import javax.swing.JComponent import javax.swing.JScrollPane import javax.swing.JTree +import javax.swing.border.Border import javax.swing.event.HyperlinkEvent import javax.swing.tree.TreePath abstract class KeyValueDetailPane(elementClass: Class, services: BrowserServices) : DetailPane(elementClass, services) { - private val scrollPane = JScrollPane(this).apply { + private val scrollPane = object : JScrollPane(this) { + override fun setBorder(border: Border?) { + } + }.apply { GUIHelper.setDefaultScrollBarUnits(this) border = null }