java - From JFrame to JPanel in Netbeans -


i'm rethinking design of gui. designed few jframe netbeans automated gui (yes, i'm lazy, , generated code awful, know !), want them jpanel (actually, inherit class inherits jpanel). had "setdefaultcloseoperation" modified, code broken : setdefaultcloseoperation impossible jpanel. since can't modify generated code, wondering : there way make netbeans understand changed mind, , regenerate code ?

when run (i've done same thing before) end having modify generated code xml file (.form file) or copying of controls i've added , paste new jpanel. $0.02 beware can break code...


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -