KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode,
Frame top = tk.getTop(); if(top == null){   return; } KeyEvent me = new KeyEvent(top, id, time, modifiers, keyCode,
    private void postEvent(int id, long time, int modifiers, int keyCode,            char keyChar) {        JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit();        KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode,                keyChar);        eventQueue.postEvent(me);    }