Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Design View(JFilechooser in Design View; not looking good)
Design View [message #479165] Mon, 10 August 2009 04:09 Go to next message
Srihari  is currently offline Srihari Friend
Messages: 8
Registered: August 2009
Junior Member
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 #479379 is a reply to message #479165] Mon, 10 August 2009 19:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

I think there is a misunderstanding here. There is no "Design View"
outside of the editor itself. If you are talking about seeing the views
on the Windows's task bar, well, those are supposed to be hidden. Some
people install windows managers that show all windows, even those that
were explicitly hidden!

If instead you are talking about them showing up on the white design
surface within the VE itself along side the main window, then that is
correct. They must show up there or you would not be able to customize them.

Srihari wrote:
> 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 mailto:ve-dev-owner@eclipse.org. Thought of
> starting a discussion also on this.
>
> I have attached a screen shot for reference.
>
> Thank You

--
Thanks,
Rich Kulp
Re: Design View [message #479433 is a reply to message #479379] Tue, 11 August 2009 03:10 Go to previous messageGo to next message
Srihari  is currently offline Srihari Friend
Messages: 8
Registered: August 2009
Junior Member
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 #479531 is a reply to message #479433] Tue, 11 August 2009 13:13 Go to previous messageGo to next message
Eclipse UserFriend
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 #479549 is a reply to message #479531] Tue, 11 August 2009 14:20 Go to previous messageGo to next message
Srihari  is currently offline Srihari Friend
Messages: 8
Registered: August 2009
Junior Member
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 #479599 is a reply to message #479549] Tue, 11 August 2009 16:37 Go to previous message
Eclipse UserFriend
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] Tue, 11 August 2009 03:10 Go to previous message
Srihari  is currently offline Srihari Friend
Messages: 8
Registered: August 2009
Junior Member
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 13:13 Go to previous message
Eclipse UserFriend
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 14:20 Go to previous message
Srihari  is currently offline Srihari Friend
Messages: 8
Registered: August 2009
Junior Member
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 16:37 Go to previous message
Eclipse UserFriend
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
Previous Topic:Design View
Next Topic:Page length
Goto Forum:
  


Current Time: Sun Dec 21 18:48:43 GMT 2014

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

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