This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200095 - replacing visual components
Summary: replacing visual components
Status: RESOLVED DUPLICATE of bug 112250
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC All
: P3 normal with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 23:00 UTC by dingfelder
Modified: 2013-07-08 13:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dingfelder 2011-07-12 23:00:44 UTC
It is painful when designing a form to change the type of a component.  

Currently, you have to select it, delete it, find the new component, re-add it, reapply any properties the old component had, and fix your layout.

it would be great to an action which will allow you to replace a bean with another in the place in the UI where you are working and keep the same layout, and keep any properties that were common between the 2 components.
Comment 1 Jan Stola 2011-07-13 09:40:22 UTC
I agree, NetBeans GUI builder is missing this feature for a long time.

*** This bug has been marked as a duplicate of bug 112250 ***
Comment 2 adingfelder 2013-07-05 04:50:02 UTC
I disagree that this is a duplicate of 112250.

112250 is talking about having a class, and changing it to a different class, and morphing the auto-generated code.

That is not what I was asking for in this bug

I am talking about changing the type of one variable on a form.

For example, if you have a panel that has a component on it (e.g a text pane), and you realise you want to change it to a different type of component (e.g. a text area), you have to delete the old component, and add the new one.  this makes your layout change and you lose any common properties.
Comment 3 lvr123 2013-07-05 19:36:37 UTC
As dingfelder said, it is really painful to change from one component to a subclass which should be really easy to implement in NB.
Comment 4 Tomas Pavek 2013-07-08 13:55:51 UTC
The original description in bug 112250 maybe was not clear enough, but we always considered it to be exactly the request you just described here. I've added a comment for clarification. And I agree this would be really useful.

*** This bug has been marked as a duplicate of bug 112250 ***