I'm trying to delete a JPanel from my mailPanel under [FrameView] in Netbeans??! When I delete this JPanel it just deletes this from Inspector view, it does not unlink and delete all the components it has auto-generated as a result of creating those controllers inside the JPanel and the JPanel itself and leaves my initial code with all the rubbish that were meant to be deleted. What should I do to safely delete everything associated with this JPanel deletion??! Please help!
Asked
Active
Viewed 64 times
1 Answers
0
Goto inspector view
> Right click the panel
> Delete

COD3BOY
- 11,964
- 1
- 38
- 56
-
I do that but when I delete, my whole code gets filled with errors from lines referencing that JPanel and its contents! The worst part that everything's in the auto-generated area and can't be touched! – Sam Oct 17 '11 at 08:37
-
If your're gonna delete a jpanel, you should make sure that its no more used, how can you delete a component that is being used in the program? and reference to auto-generated code, you can edit that by `right-clicking` the component and select `customiz-code`. – COD3BOY Oct 17 '11 at 08:41
-
suppose if you have a code snippet `jtexfield1.settext("test")`, this `jtextfield` was in the jpanel you deleted,so the above snippet will show error since the `jtextfield` will be deleted with the jpanel ~! – COD3BOY Oct 17 '11 at 08:45