I`m making a GUI for my java program using Swing Components and Netbeans IDE.

My problem is that when loading a frame from another frame then newly loaded frame shows the contents of the old frame when moving mouse over the new frame.Please help me o avoid this.Am using drag and drop method for design.

don't use the "drag and drop method". it generates hardly readable, even harder to maintain and very crappy code. you'll be in a lot of trouble trying to debug that.

rewrite your classes in a way you understand them (do hope you seperated your GUI from your other layers).

if you don't understand what I mean by that, or when you've done so: post the relevant code here. without it, we can't say anything aboutwhat you might be doing wrong.