1 7 package javax.swing.event; 8 9 import javax.swing.MenuElement ; 10 import javax.swing.MenuSelectionManager ; 11 import java.util.EventObject ; 12 import java.awt.event.KeyEvent ; 13 import java.awt.Component ; 14 15 16 33 public class MenuKeyEvent extends KeyEvent { 34 private MenuElement path[]; 35 private MenuSelectionManager manager; 36 37 54 public MenuKeyEvent(Component source, int id, long when, int modifiers, 55 int keyCode, char keyChar, 56 MenuElement p[], MenuSelectionManager m) { 57 super(source, id, when, modifiers, keyCode, keyChar); 58 path = p; 59 manager = m; 60 } 61 62 67 public MenuElement [] getPath() { 68 return path; 69 } 70 71 76 public MenuSelectionManager getMenuSelectionManager() { 77 return manager; 78 } 79 } 80 81 | Popular Tags |