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 66419 - Refactoring existing form component to subclassed component
Summary: Refactoring existing form component to subclassed component
Status: RESOLVED DUPLICATE of bug 112250
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-10 20:21 UTC by fuerte
Modified: 2007-08-08 15:18 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fuerte 2005-10-10 20:21:38 UTC
My problem was: "He has an ALREADY EXISTING JTable object in his form and needs
to replace this with an instance of his new derived MyJTable class. Is
there any way to achieve this? Deleting the existing JTable object and
re-inserting a MyJTable would work, but all the settings for the old
JTable would be lost."

Workaround:

"Chuck - you are right the IDE does not support such substitution of components.
But it is a feature that could be implemented. Could somebody of you guys file
an enhancement request for 'form' component?

For Harri: in the current state the easiest way is probably to open the .form
file in an external editor and replace "javax.swing.JTable" with your component
class name. Just be careful - do this when the form is not opened in the IDE,
and be sure it is really a subclass of JTable. And note this is just a
workaround - it is generally not recommended to do anything to the .form file.

  - Tomas"
Comment 1 Tomas Pavek 2007-08-08 15:18:01 UTC
Issue 112250 describes this problem in general.

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