Java Mac Menu System

I developed one Java Jframe application for Mac. I used


command to load the menu as Mac System menu. Its working , ...but while running the application i made some menus to be hidden/ this time i got a error like this

ava -Dapple.laf.useScreenMenuBar=true MyMenu
2004-10-15 14:19:24.681 java[376] Java couldn't paint in Java_apple_awt_CRenderer_doRect, no focused view.
Menu item[Undo[pressed!
apple.awt.EventQueueExceptionHandler Caught Throwable :
at apple.laf.ScreenMenu.setVisible(
at apple.laf.ScreenMenu.componentShown(
at java.awt.Component.processComponentEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

How can i solve this ?

Thanks in advance


Please sign in to leave a comment.