-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
native-image : popupmenu is not rendered correctly #7037
Comments
I tried to dig into |
Thank you for reaching out about this, we'll take a look into it shortly |
related to #4921 |
@oubidar-Abderrahim Is there any update? |
Unfortunately, I wasn't able to reproduce the issue on my side. the native-image was built and run successfully using the latest dev build |
@oubidar-Abderrahim I'll try the latest dev build. Maybe something has changed after 3 weeks |
Tried latest dev build and problem remains. |
It's also true for me |
@oubidar-Abderrahim nothing has changed with the latest build |
@oubidar-Abderrahim is it rendered correctly?
|
Yes, it rendered correctly, the only difference I can see is that I was using Windows 10. |
@oubidar-Abderrahim I also use Windows 10 and problem remains. |
@oubidar-Abderrahim can you post here link to exact build you've been using while trying to reproduce? |
@oubidar-Abderrahim Also reflect- and jni- configs might help. It would be great if you will share them |
@pquiring maybe you've made any progress with this issue? |
Nothing yet. |
I downloaded this build from an internal source, but it should be the same as the one in Github, I don't remember which build exactly though resource-config.json
reflect-config.json
jni-config.json
|
I tested again with Oracle GraalVM for JDK21 release and it was working fine. please give it a try from here https://www.graalvm.org/downloads/ |
Closing this as not-reproducible |
@pquiring have you succeed with graalvm for java 21? |
No progress. |
java.awt.PopupMenu are not rendered correctly. They are often squished (not enough room for text) or sometimes the wrong font.
Sample code:
Build steps:
Make a small tray.png file (16x16)
Compile:
javac trayicon.java
Agent:
java -agentlib:native-image-agent=config-output-dir=META-INF\native-image trayicon
archive:
jar -cf trayicon.jar *.class META-INF\native-image\*
NativeImage :
native-image -cp trayicon.jar trayicon
Run:
trayicon.exe
Environment:
Latest graal 23.1.0 CE (must be latest nightly build. 23.0 the tray icon doesn't work at all)
Windows 11 amd64
Thanks,
The text was updated successfully, but these errors were encountered: