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: How to remove a close button from the title bar of a window?



>We created our on Dialog which extends Jdialog.
>
>Within our own class we overridden
>protected void processWindowEvent(WindowEvent e).
>Since then no closing events happend any more and our modal dialog stays as long as we wish.

Well, I would like to avoid this for two reasons:

1.
Always creating subclasses sometimes just to re implement a function seems a bit "un elegant", with projects growing toward hundreds of classes for no good reason.

2.
Overriding that function you are only rendering the close (or miniaturize) button(s) non functionnal. They are still visible on the screen. At best, if I can't remove them without removing the title at the same time, I will handle the closing in the same way as I do with my specific close button. I just wanted to avoid the visual issue of having two ways to close a window.

Alexander
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




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.