What's the owner for Swing JDialog now? [message #436158] |
Wed, 31 August 2005 15:01  |
Eclipse User |
|
|
|
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 18:47  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.23125 seconds