From 189d4877eb5a767dc354064bb3919c6058ed5c74 Mon Sep 17 00:00:00 2001 From: Richard L King Date: Mon, 25 Oct 2021 13:13:51 +0100 Subject: [PATCH] Log the content of JTextPane's --- src/ibcalpha/ibc/SwingUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ibcalpha/ibc/SwingUtils.java b/src/ibcalpha/ibc/SwingUtils.java index e1fb766..9fae40d 100644 --- a/src/ibcalpha/ibc/SwingUtils.java +++ b/src/ibcalpha/ibc/SwingUtils.java @@ -696,6 +696,9 @@ private static String getComponentDetails(Component component) { } else if (component instanceof JTextField) { s += "JTextField: "; s += ((JTextField) component).getText(); + } else if (component instanceof JTextPane) { + s += "JTextPane: "; + s += ((JTextPane) component).getText(); } else if (component instanceof JMenuBar) { s += "JMenuBar: "; s += ((JMenuBar) component).getName();