Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Albireo » Re: Control.setParent() under Windows
Re: Control.setParent() under Windows [message #574055] Mon, 26 May 2008 13:02
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6417
Registered: July 2009
Senior Member
If you don't get an answer here I can point you to the albeiro-newsgroup
which deals with Swing/AWT-SWT integration problems and people might
know more about the issues you can run into.

I would also suggest that your message title could have been better by
integrating Swing so people from this project skimming the newsgroups
take a look at your question.

I copied your request to this newsgroup.



Magnus Konze schrieb:
> Sorry for pushing this topic. Perhaps my question was to detailed.
> Basically i'm interested with experiences with setParent() under
> Windows. So in short:
> Do i have to expect problems with setParent()? My application will only
> run under Windows systems.
> Regards Magnus
> Magnus Konze schrieb:
>> Hi!
>> I'm using the SWT_AWT bridge to add SWT-Controls to Swing.
>> When using the bridge in this direction the Swing Window has to be
>> visible, when adding SWT-Controls, otherwise you get a 'peer not
>> created'-Exception.
>> So i have to call setVisible(), although i don't know the size of the
>> SWT-Controls.
>> Here is my idea:
>> - create a new Shell with the Controls i want to add to the Swing Window
>> - compute the Shells size
>> - setSize() on the Swing Window
>> - setVisible() on the Swing Window
>> - create a new Shell on the Swing Window (SWT_AWT.new_Shell())
>> - set this Shell as the parent of my SWT Controls
>> - dispose first Shell
>> The first Shell is never opened!
>> I'm using Windows XP and it works fine. So my question is:
>> Do i have to expect problems on other systems (especially other
>> Windows systems)? Are there other problems aside from that it's not
>> possible to change the parent on all systems?
>> Regards Magnus

B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:Invoking jface WizardDialog from Swing Action
Next Topic:Alpha 2 is available
Goto Forum:

Current Time: Mon Nov 19 11:47:54 GMT 2018

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

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

Back to the top