posted 17 years ago
Hi,
My GUI works as follows -
I have a page containing JTable in which if I click a row, a JDialog is popped-up. In this JDialog only, I have used the key bindings as follows-
Action anAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
//code
}
};
optionPane.getInputMap().put(KeyStroke.getKeyStroke("F1"), "showHelp");
optionPane.getActionMap().put("showHelp",anAction);
On pressing F1 on the pop-up, I am able to get the help screen up but not able to access it unless i close the pop-up. As per your suggestion, I am not able to get the clear picture of how to set the parent here.
Please explain me in detail to solve this issue.
Many thanks in advance!!