Hi, I have an application, that has a JFrame.
Added to the JFrame's contentPane is a JDesktopPane.

I use JMenuItems in the JMenu (in JMenuBar) to add, and then remove a JInternalFrame inside the JDesktopPane.

But now.. when I use any acclerator keys, to invoke JMenuItems, they don't work, its something to do with focus I think, but I don't know how to fix it.

Any ideas? Thanks

Recommended Answers

All 2 Replies

Would you mind post your code?

Code is too big to post, I think I've fixed it, I just use requestFocus() on the JMenuBar, after removing the JInternalFrame.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.