/** * Invoked when one of the menus is selected. * * @param e contains the selected menu item. */ public void actionPerformed(ActionEvent e) { Thread thread = new Thread(this); thread.setPriority(Resource.getThreadPriority()); thread.start(); }