Issue in color setting
Clemens Lanthaler
clemens.lanthaler at itarchitects.at
Sun Oct 6 17:26:40 UTC 2024
Hi everyone,
I have just moved over my application (Photoslide) from JFX22 to JFX23
and I am facing the folling issue:
* For any FontIcon (iKonli) where I set the color in web form I am
getting the follwing exception:
o Exception in thread "JavaFX Application Thread"
java.lang.StackOverflowError
at java.base/java.lang.String.substring(String.java:2930)
at java.base/java.lang.String.substring(String.java:2898)
at
javafx.graphics at 24-ea/javafx.scene.paint.Color.web(Color.java:403)
at
javafx.graphics at 24-ea/javafx.scene.paint.Color.web(Color.java:646)
at
javafx.graphics at 24-ea/javafx.scene.paint.Color.valueOf(Color.java:667)
at
javafx.graphics at 24-ea/javafx.scene.paint.Paint.valueOf(Paint.java:124)
at
org.photoslide.MainViewController.lambda$initialize$1(MainViewController.java:266)
* The corresponding code I am using and which is working with JFX22:
o processListIcon.iconColorProperty().addListener((o) -> {
if (!taskProgressView.getTasks().isEmpty()) {
processListIcon.setIconColor(Paint.valueOf("lightgreen"));
} else {
processListIcon.setIconColor(Paint.valueOf("#c5c5c5"));
}
});
o Changing "#c5c5c5" to e.g. "red" than all is fine. Also using
the RGB values is resulting in an Exception (Color paint = new
Color(0.7725, 0.7725, 0.7725, 1.0);)
This issue is also present in JFX24ea and I have searched if iKonli has
an open issue. It seems that there is an issue.
cheers,
Clemens
--
ITArchitects
CEO: B.Sc. Clemens Lanthaler
Forchachstrasse 3
A-6166 Fulpmes
Tel.: +43 (0)650 855 2954
email:office at itarchitects.at
homepage:http://www.itarchitects.at
-------------------------------------------------
Notice: This e-mail and any attachments are confidential and may be privileged.
If you are not the intended recipient, notify the sender immediately, destroy all
copies from your system and do not disclose or use the information for any purpose.
Diese E-Mail inklusive aller Anhaenge ist vertraulich und koennte bevorrechtigtem
Schutz unterliegen. Wenn Sie nicht der beabsichtigte Adressat sind, informieren Sie
bitte den Absender unverzueglich, loeschen Sie alle Kopien von Ihrem System und
veroeffentlichen Sie oder nutzen Sie die Information keinesfalls, gleich zu welchem Zweck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20241006/d3e4db32/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x94A919BE276C7EA1.asc
Type: application/pgp-keys
Size: 2460 bytes
Desc: OpenPGP public key
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20241006/d3e4db32/OpenPGP_0x94A919BE276C7EA1-0001.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20241006/d3e4db32/OpenPGP_signature-0001.asc>
More information about the openjfx-dev
mailing list