Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JPopupMenus don't highlight selected menu items



--- Werner Randelshofer
<email@hidden> wrote:
> Rib,
>
> This is a bug in Apples Aqua L&F. File a bug
> report to Apple.
>
> As a workaround you need to implement your own
> MenuItemUI class which
> correctly draws the highlight. Then you have to
> mix it into the AquaLookAndFeel by setting the
> MenuItemUI property of the SwingUIManager.

Is there a way to extend AquaMenuItemUI? I think I've
figured out how to make it work if I can, but whenever
I instantiate on object of my class I get an
IllegalAccessException like this:
Exception in thread "main"
java.lang.IllegalAccessError: tried to access method
apple.laf.AquaMenuItemUI.<init>(I)V from class
apple.laf.FixedAquaMenuItemUI
at
apple.laf.FixedAquaMenuItemUI.<init>(FixedAquaMenuItemUI.java:6)
at
apple.laf.FixedAquaMenuItemUI.createUI(FixedAquaMenuItemUI.java:12)
at test.main(test.java:4)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: JPopupMenus don't highlight selected menu items (From: Werner Randelshofer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.