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.
Build 1093 and 23 ----------------- Steps to reproduce: 1. Open some of the following forms: AWT Panel, AWT Applet, AWT Dialog. 2. Add some Swing component into it. 3. Delete this component. 4. The form editor window will not be repainted. The component still will be shown in the form editor window. It disapears only if you force repainting by hiding it by another window. * The deleted component must be Swing component-for AWT component it works fine. * The funny thing is that the deletion works for AWT Frame. * If you put some container to the form, put the Swing component into it and then try to delete this component from the container than the deletion works fine. So if you want to reproduce this bug you should put the swing component right to the newly created form.
This is caused by mixing AWT and Swing components and containers. Form editor uses internally a Panel as top container for Dialog, Applet and Panel design forms. This AWT Panel is not correctly repainted if it contains Swing components and has a Swing layout. I suppose this could be fixed by using JPanel instead (during design). But I'm not sure if this won't affect AWT components then... However, user can still put a Panel with Swing components into the form manually and the problem is back... I think Swing components should not be put into AWT containers. (Does it make sense to warn the user not to do it?) Even if we got round this problem at design time it wouldn't work at runtime. So I suggest to keep the current implementation.
*** Bug 8375 has been marked as a duplicate of this bug. ***
Resolved for 3.3.x or earlier, no new info since then -> closing.