Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT_AWT DPI scaling
SWT_AWT DPI scaling [message #1858043] Sun, 12 March 2023 19:57 Go to next message
Eclipse UserFriend
I'm using SWT_AWT to run NASA WorldWind in an Eclipse application. There's a problem when using DPI scaling other than 100%. The SWT_AWT.new_Frame() method sets the frame size using the current DPI scaling. That's wrong, I think. The embedded frame is sitting within another SWT composite, and it gets is size when the outer composite layout runs.

I don't see any way to turn that off. So the effect frame size is wrong with scaling other that 100%.

Am I missing something?
Re: SWT_AWT DPI scaling [message #1858079 is a reply to message #1858043] Wed, 15 March 2023 00:05 Go to previous messageGo to next message
Eclipse UserFriend
Did old JVM work?
It is noted that combining SWT components with AWT/Swing is going to get trouble. I used to get warnings from JVM. So I changed program not to use AWT/Swing components.

Re: SWT_AWT DPI scaling [message #1858088 is a reply to message #1858079] Wed, 15 March 2023 09:47 Go to previous message
Eclipse UserFriend
I've decided that this is a bug in SWT_AWT: https://bugs.eclipse.org/bugs/show_bug.cgi?id=581656.
I haven't tried an older JVM. I'm using jdk-11.0.12.7-hotspot.
Previous Topic:Select all content of a text widget after a mouse click
Next Topic: [Windows 10] - OLE - Problem when embedding Microsoft Application as excel in SWT Frame
Goto Forum:
  


Current Time: Sun Aug 31 12:25:47 EDT 2025

Powered by FUDForum. Page generated in 0.06935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top