From 3f86a868ee326a27fdf8d6db8b2058cb1c4bf5f4 Mon Sep 17 00:00:00 2001 From: May Date: Mon, 24 Apr 2023 01:03:30 -0400 Subject: [PATCH] [#2161] Add setForeground and setBackground functions to DescriptionArea --- .../sf/openrocket/gui/components/DescriptionArea.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/swing/src/net/sf/openrocket/gui/components/DescriptionArea.java b/swing/src/net/sf/openrocket/gui/components/DescriptionArea.java index b60d4f6ad..39ca75da0 100644 --- a/swing/src/net/sf/openrocket/gui/components/DescriptionArea.java +++ b/swing/src/net/sf/openrocket/gui/components/DescriptionArea.java @@ -202,5 +202,15 @@ public class DescriptionArea extends JScrollPane { editorPane.setFont(font); } } + + public void setBackground(Color color) { + if (editorPane == null) return; + editorPane.setBackground(color); + } + + public void setForeground(Color color) { + if (editorPane == null) return; + editorPane.setForeground(color); + } }