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

Panel too big to fit Mac Retina screen #6

Open
raidersan opened this issue Jan 24, 2023 · 2 comments
Open

Panel too big to fit Mac Retina screen #6

raidersan opened this issue Jan 24, 2023 · 2 comments

Comments

@raidersan
Copy link

When I run the emulator on my macbook (2022 M2), it cannot fit the whole panel on my screen even though the resolution is 2560 x 1664. Could it be that the Swing framework is misbehaving on macOS? Would it be possible to use a LayoutManager that allows window resizing? Thanks!

@DylanSpeiser
Copy link
Owner

macOS auto-scales the window for your screen size, even though in this situation it would be better not to. I don't think there's a way to disable this, as it is OS-wide. The window itself is resizable, though. Are elements cut off on your screen?

@raidersan
Copy link
Author

raidersan commented Jan 27, 2023

Not soo bad anymore, I have changed the scaling to the smallest setting in MacOS, so I am only missing the bottom of the window with the version and author (I think). I don't understand why your 1080p jFrame doesn't fit within a much higher resolution that is available. It feels like Swing is applying a scaling factor that blows it up, everything looks magnified
Here is the screenshot. If you compare the fonts in my in my menu bar top right to the app, they are quite a bit bigger and there is a lot of space between lines. Looking at it again, it seems that width is ok but line spacing is off
https://imgur.com/a/r8KYu3S

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