On Dec 8, 2006, at 4:32 AM, Werner Randelshofer wrote:
Dear Michael,
On 06.12.2006, at 22:21, Michael Hall wrote:
OK thanks, maybe I'll let Werner support this one for me. So far I
have just used Quaqua for the JFileChooser. It wasn't clear to me
from the doc description that it included the animated.
I thought it was obvious that JSheets are animated. :)
I am going to add a note about the animation to the docs.
Some people don't necessarily agree with animation improving the gui
for control components. If you were such a person it might be a
feature you'd consider omitting in your implementation.
Btw. Version 3.7beta2 of the Quaqua look and feel supports native
sheets when run with Java SE 6.
By means of the new Java AWT feature
Dialog.ModalityType.DOCUMENT_MODAL: http://java.sun.com/javase/6/
docs/api/java/awt/Dialog.ModalityType.html#DOCUMENT_MODAL
If you are targeting Java SE 6, you don't need to use the JSheet
class of Quaqua.
(Although, the API of Java SE 6 lacks support for Listener's on
document modal dialogs like JSheet provides.)
Not really targeting 1.6 yet. Should be doing more testing though.
There is some other thing, that is not documented in the docs:
JSheet components are cross-platform. If used on Mac OS X, they
will display as animated translucent sheets, if used on non-Mac OS
X operating systems, they will display as (boring) document modal
dialogs.
Thus, you can use JSheet on all operating systems, without having
to implement a "if (isMacOSX)" statement in your code.
Ah, I wondered a little bit about that. It makes sense if you
consider this a MacOSX look and feel enhancement. But what if I am
choosing it as how I want my application's input to work. I would
like the dialog tied to the parent JFrame since I only want the input
information to apply to that one. I like that it is modal only to
that frame. The other things that make a sheet a different sort of
situation?
_______________________________________________
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