K
Knute Johnson
I've got a JButton on a JPanel on a JTabbedPane on a JFrame. I'm trying
to set the JButton to the default button so that when you press the
enter key the button is pressed. The problem is I can't get the
RootPane to call setDefaultButton() on. I get NullPointerExceptions on
any of the calls to getRootPane(). Any ideas why? Is there something
funny about JTabbedPanes?
Thanks,
to set the JButton to the default button so that when you press the
enter key the button is pressed. The problem is I can't get the
RootPane to call setDefaultButton() on. I get NullPointerExceptions on
any of the calls to getRootPane(). Any ideas why? Is there something
funny about JTabbedPanes?
Thanks,