public void test(javax.swing.JFrame f){ try { f.create(); } catch ( java.lang.Exception __e ) { __e.printStackTrace(); } }private void jmenubar_1_Handbuch_actionPerformed( java.awt.event.ActionEvent event ){ test(Fh); test (Fes);}Frame_Handbuch Fh = new Frame_Handbuch();Frame_Einstellungen Fes = new Frame_Einstellungen();##### Ende####### und so funktioniert es####private void jmenubar_1_Handbuch_actionPerformed( java.awt.event.ActionEvent event ){ Frame_Handbuch Fh = new Frame_Handbuch(); try { Fh.create(); } catch ( java.lang.Exception __e ) { __e.printStackTrace(); } }