probably something like this:
it's lame though.. UI design should have a lot of effort put into it, because it is what the user interacts with.. do whatever you like that is hidden, but be consistent and sensible when working with the userCode:Component[] c = jframe.getContentPane().getComponents(); MyDeferringKeyListener mdkl = new MyDeferringKeyListener(); for(int i=0; i<c.length; i++){ if c.isFocusable() //non focusable probably dont emit keyevents c.addKeyListener(mkdl); }




Reply With Quote