From f980ec29c74ac88c8898731e155716bd4d771aa1 Mon Sep 17 00:00:00 2001 From: Hoang Vu Huy Date: Thu, 26 Dec 2024 15:06:50 +0700 Subject: [PATCH] Change deprecated from setColor to setForeColor --- .../ivy/addons/docfactory/WatermarkTextDocumentWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc-factory-test/src_test/ch/ivyteam/ivy/addons/docfactory/WatermarkTextDocumentWorker.java b/doc-factory-test/src_test/ch/ivyteam/ivy/addons/docfactory/WatermarkTextDocumentWorker.java index c781a437..b8515d87 100644 --- a/doc-factory-test/src_test/ch/ivyteam/ivy/addons/docfactory/WatermarkTextDocumentWorker.java +++ b/doc-factory-test/src_test/ch/ivyteam/ivy/addons/docfactory/WatermarkTextDocumentWorker.java @@ -53,7 +53,7 @@ private void makeWatermarkText(Document doc, @SuppressWarnings("hiding") String // Text will be directed from the bottom-left to the top-right corner. watermark.setRotation(-40); // Remove the following two lines if you need a solid black text. - watermark.getFill().setColor(Color.LIGHT_GRAY); // Try LightGray to get more + watermark.getFill().setForeColor(Color.LIGHT_GRAY); // Try LightGray to get more // Word-style watermark watermark.setStrokeColor(Color.LIGHT_GRAY); // Try LightGray to get more // Word-style watermark