Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Restricting the size of SWT-AWT bridge frame to parent composite
Restricting the size of SWT-AWT bridge frame to parent composite [message #1764157] Fri, 26 May 2017 02:49 Go to next message
Anish Abraham is currently offline Anish AbrahamFriend
Messages: 4
Registered: April 2016
Junior Member
When creating an SWT-AWT bridge frame and embedding it into an SWT-rendered Eclipse RCP part, changes in the AWT container (hiding / showing components) changes the size of the bridge frame causing it to extend well beyond the bounds of the parent composite. In an RCP application, the size is corrected the moment the containing part is resized.


Is there any way to restrain the bridge-frame from resizing beyond the containing composite?


I've cross-posted an example of this side-effect on StackOverflow with code and screenshots:
https://stackoverflow.com/questions/44172177/refreshing-eclipse-rcp-part-containing-an-awt-swt-bridge-when-contents-of-the-br

Thanks!
Re: Restricting the size of SWT-AWT bridge frame to parent composite [message #1764189 is a reply to message #1764157] Fri, 26 May 2017 14:13 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 693
Registered: January 2012
Senior Member

It's a problem with your Swing code: you can see the same behaviour with pure Swing code. You need to `doLayout()` in your event handler.

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Page in wizard isn't visible until a maximize of wizard window
Next Topic:Java application SWT components repaint to black
Goto Forum:
  


Current Time: Thu Dec 14 08:21:36 GMT 2017

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

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