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 151058 - Inspector not updated if 'extends' code changed.
Summary: Inspector not updated if 'extends' code changed.
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 18:46 UTC by jerryschreiber
Modified: 2008-10-23 11:19 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 jerryschreiber 2008-10-22 18:46:08 UTC
If I add a module to a project by selecting New JFrame, but later alter the code of the class from 'extends
javax.swing.JFrame' to 'extends javax.swing.JDialog' (and adding the arguments to the constructor, and invoking the
JDialog constructor super(parent, modal) so that it works as a JDialog), the Inspector window still shows the top level
entry as JFrame rather than JDialog.

I have had occasion to do this when I realized after the fact that I need a modal screen, but did not want to rebuild
the screen layout already done in a JFrame module.
Comment 1 Jana Maleckova 2008-10-23 11:19:23 UTC
if you do such changes, you have to reopen or reload the form class. I tested it in my environment and it works. But
don't forget, that the e.g. value of method defaultCloseOperation should be changed. Then the top level node is changed
to jDialog