Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: automatic menu creation in java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automatic menu creation in java



I've added java-dev to this message since it's a better place for Java-centric questions.

Anyways, on to your question:

There is a package called com.apple.mrj that has functions that allow you to hook into the About and Quit menu items in that menu. Here's a snippet from my code that lists the different classes:

// com.apple.mrj package imports
import com.apple.mrj.MRJAboutHandler;
import com.apple.mrj.MRJApplicationUtils;
import com.apple.mrj.MRJOpenDocumentHandler;
import com.apple.mrj.MRJPrintDocumentHandler;
import com.apple.mrj.MRJQuitHandler;

I know there is documentation up on the Apple Java Developer Web Site about these interfaces and classes, that can show you how to hook this up.

Scott Tooker
QA & Integration - Project Builder
Mac OS X Development Environment

On Thursday, January 25, 2001, at 02:34 PM, Brad Miley wrote:

I created a java application using project builder named Test. When I open this application I see a menu called Test that includes the following menu item: About Test.. . My question is how do I customize the action to take when this menu item is selected so that when a user selects About Test... a dialog pops up? Thank you.

Brad
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
projectbuilder-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/projectbuilder-users


References: 
 >automatic menu creation in java (From: "Brad Miley" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.