Skip to content
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

Question on HiDPI vs. non-HiDPI #819

Open
j-dimension opened this issue Mar 12, 2024 · 3 comments
Open

Question on HiDPI vs. non-HiDPI #819

j-dimension opened this issue Mar 12, 2024 · 3 comments

Comments

@j-dimension
Copy link

j-dimension commented Mar 12, 2024

I have a question on scaling.

I have a Windows 11 client with two displays:

  • 3840 x 2160, landscape, scale set to 125% (OS level)
  • 1200 x 1920, portrait, scaled default 100% (OS level)

My application is starte on the 1920px display. When dragged to the other display, the rendering is faulty (see screenshot) and the app is not clickable at all. Once moved back to the original display, the app works fine.

I suspect I am doing something wrong within my application code, but have no idea where to begin and what role the LaF (FlatLaf) plays in this.

Do you have any idea where I start tracking this down?

Thank you so much in advance.

grafik

@DevCharly
Copy link
Collaborator

Hmm, can not reproduced this here...
Could be a Java bug or a graphics driver problem...

What Java version do you use?

If you resize the window, after dragging it to other screen, is it shown correctly and "clickable" again?

Do you have any idea where I start tracking this down?

  • check whether FlatLaf Demo has the same problem (with same JRE as you app)
  • try you app with -Dflatlaf.useWindowDecorations=false
  • also try -Dflatlaf.useNativeLibrary=false
  • try different Java versions

@j-dimension
Copy link
Author

Thanks @DevCharly.

I am using Liberica JRE 17:

java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 17.0.9+11-LTS
java.specification.version = 17
java.vendor = BellSoft
java.vendor.url = https://bell-sw.com/
java.vendor.url.bug = https://bell-sw.com/support

I will look into your suggestions, thanks.

@j-dimension
Copy link
Author

If you resize the window, after dragging it to other screen, is it shown correctly and "clickable" again?

I have no way of resizing the window, unfortunately. There is no clickable area. It does not just seem to be a repaint issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants