Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » What's the owner for Swing JDialog now?
What's the owner for Swing JDialog now? [message #436158] Wed, 31 August 2005 19:01 Go to next message
No real name is currently offline No real nameFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I am starting adopting RCP to existing swing project. Now, I got a problem
on what's the owner for swing JDialog.

You know JDialog requires a owner, and in pure swing I can keep reference of
the application JFrame and pass it to JDialog. But now there is no such
application JFrame thing anymore. So, how can I still use JDialog? I tried
pass in "null" as owner to JDialog, but that freezes and crushes all my rcp
application.

Thanks a lot,

Linwei
Re: What's the owner for Swing JDialog now? [message #436159 is a reply to message #436158] Wed, 31 August 2005 22:47 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
hovercheng wrote:

> Hi,
>
> I am starting adopting RCP to existing swing project. Now, I got a problem
> on what's the owner for swing JDialog.
>
> You know JDialog requires a owner, and in pure swing I can keep reference
> of the application JFrame and pass it to JDialog. But now there is no such
> application JFrame thing anymore. So, how can I still use JDialog? I tried
> pass in "null" as owner to JDialog, but that freezes and crushes all my
> rcp application.
>
> Thanks a lot,
>
> Linwei

see snippet 154 on eclipse.org/swt
You can make embed swing frame in swt shell and frame is owner your dialog
then

regards
Previous Topic:How do I display errors in the problem view?
Next Topic:How do i get the System icon to display on my Tree ?
Goto Forum:
  


Current Time: Mon Dec 09 07:23:04 GMT 2024

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

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

Back to the top