Design View [message #479165] |
Mon, 10 August 2009 00:09  |
Eclipse User |
|
|
|
I am using VE to create a fairly simple application.
I have a Main frame extending from JFrame. One of the menu item action event I am showing up an open dialog using JFileChooser.
Now in the design view I am able to see the open dialog!! Not really sure why this is coming up. Does this always come.? I guess. Because I added an 'About' dialog to my application which gets instantiated when the menu item help -> About is clicked; even this is showing up in the main frame design view.
I like to know is there a way to avoid these things coming up? It really looks odd.
I have also sent an email to ve-dev-owner@eclipse.org. Thought of starting a discussion also on this.
I have attached a screen shot for reference.
Thank You
|
|
|
|
|
|
|
Re: Design View [message #479599 is a reply to message #479549] |
Tue, 11 August 2009 12:37  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Hi,
No there isn't any way to turn it off.
What you are doing is a valid and good way. But others are treating the
dialogs as part of the application itself and contained within it, so
they treat them all together in the same editor.
--
Thanks,
Rich Kulp
|
|
|
Re: Design View [message #617403 is a reply to message #479379] |
Mon, 10 August 2009 23:10  |
Eclipse User |
|
|
|
Thank you for the reply.
Yeah I am talking about the white screen in VE.
I couldn't understand where you say "... then that is
correct. They must show up there or you would not be able to customize them."
Regards.
|
|
|
Re: Design View [message #617404 is a reply to message #479433] |
Tue, 11 August 2009 09:13  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Hi,
Dialogs can be customized just like any other window. Such as dropping
new components on them (such as a JTextField, etc). If the dialog was
not visible on the free form surface you wouldn't be able to do this.
Srihari wrote:
> Thank you for the reply.
>
> Yeah I am talking about the white screen in VE.
>
> I couldn't understand where you say "... then that is
> correct. They must show up there or you would not be able to customize
> them."
>
> Regards.
--
Thanks,
Rich Kulp
|
|
|
Re: Design View [message #617405 is a reply to message #479531] |
Tue, 11 August 2009 10:20  |
Eclipse User |
|
|
|
The approach I have in mind that for every customized dialog, I will have a different view where I can customize it.
For example, lets say, to create an 'About' dialog for the application, I will create a new Class extending from JDialog and I will put the required components. On the other hand, I will my main frame in a separate class which has a 'About' button whose 'actionPerformed' event is implemented to display 'About' dialog.
So, I see two different classes. Hence I am not able to appreciate the need to see the same dialog in my main frame class view. Hence my opinion is to disable child components being displayed with the main frame.
But I guess VE doesn't have the same thought process. If possible if a setting in 'Preference' which can disable this kind of views it would be good.
I appreciate your inputs, thank you.
|
|
|
Re: Design View [message #617406 is a reply to message #617405] |
Tue, 11 August 2009 12:37  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Hi,
No there isn't any way to turn it off.
What you are doing is a valid and good way. But others are treating the
dialogs as part of the application itself and contained within it, so
they treat them all together in the same editor.
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.04679 seconds