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

Summary: Inspector not updated if 'extends' code changed.
Product: ide Reporter: jerryschreiber <jerryschreiber>
Component: UIAssignee: issues@ide <issues>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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