Skip to content

Commit

Permalink
Change deprecated from setColor to setForeColor
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoang Vu Huy committed Dec 26, 2024
1 parent f748e15 commit f980ec2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f980ec2

Please sign in to comment.