Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT_AWT DPI scaling
SWT_AWT DPI scaling [message #1858043] Sun, 12 March 2023 23:57 Go to next message
Glenn Burkhardt is currently offline Glenn BurkhardtFriend
Messages: 12
Registered: April 2017
Junior Member
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 04:05 Go to previous messageGo to next message
Martin J is currently offline Martin JFriend
Messages: 50
Registered: August 2015
Member
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 13:47 Go to previous message
Glenn Burkhardt is currently offline Glenn BurkhardtFriend
Messages: 12
Registered: April 2017
Junior Member
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: Mon Nov 11 17:14:23 GMT 2024

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

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

Back to the top