Skip to main content

SWT with JXLayer Scale Issue

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
jjacobohdz
Offline
Joined: 2011-02-03

Hello Alex, First of all thanks for this amazing work.
I'm having an issue when trying to scale a swt component. My application is swing based and I'm using DJNative library ( http://djproject.sourceforge.net/ns/index.html ) which is a wrapper to easily embbed swt components into swing application.
The issue is when showing a SWT web browser and scale it it doesnt scale at all, it just keeps its original position and size (any other components scale correctly).
Do you have any idea of what could I be missing?, is the JXLayer library able to work with native components like SWT?
Any response is very appreciated.
Thanks in advance,
Jacobo.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexfromsun
Offline
Joined: 2005-09-05

Hello Jacobo

JXLayer works only with Swing components,
there is no way it can scale or decorate heavyweight components like SWT ones
Thanks
alexp