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: Contetxtual Menu changes selection



Werner Randelshofe wrote:

No. There is absolutely no need to extend existing UI classes.
The Swing UIManager class allows to mix UI classes. The only thing you have
to care about, is to put all the property values that your UI class needs to
work in the UIManager as well.


Ok Ive subclassed BasicTableUI and set it in UIManager, it is being called as can be seen from debugging and it hasnt broken anything. I was suprised that it worked ok and was used in all look and Feels but then I noticed other look and feels such as Metal don't actually define a MetaltableUI class so maybe they all use it.

As of yet Im unable to think of a solution, Im not sure if the problem is with the MouseHandler after all. Does anyone have an idea of what the chain of
events is when do a CNTl-CLICK
For example:
Does the TableUI receive a focus event and a mouse event at the same time which is what I thought was happening, or does it only receive a Mouse click event but then dispatches a focus event which gets picked up by the focus handler. Or is it nothing to do with focus events ?



Do you intend to run your application using Metal and CDE on Mac OS X?
I believe that single button mouse are working on Apple hardware platforms
only. I don't know, if Windows or Linux works with a single button mouse at
all.


I would recommend they use the OSX LAF but my application does allow them to change the Look and Feel to any of the one currently installed. I was just thinking that if the main SUN Release built in some support for one-click mouses (whatever the platform) even if it was theoretical then these issues would be less likely to arise.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden
References: 
 >Re: Contetxtual Menu changes selection (From: Werner Randelshofer <email@hidden>)
 >Re: Contetxtual Menu changes selection (From: Paul Taylor <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.