Originally posted by Dilshan Edirisuriya: I want to disable the maximize button in the mac. And I want to do that only to some of the frames. Actually my requirement is to disable the maximize functionality in JFileChooser.
Just to be complete (or perhaps pedantic) there is no Maximize button in OS X. The green button on the caption bar is an "Optimize Size" button which cause the application to adjust the window to what it feels is the optimum size for the contents (which is rarely full-screen).