void (ActionListener testTypeListener) { myAllInFolderRB.addActionListener(testTypeListener); myTestScriptRB.addActionListener(testTypeListener); myTestClassRB.addActionListener(testTypeListener); myTestMethodRB.addActionListener(testTypeListener); myTestFunctionRB.addActionListener(testTypeListener); }