How can I don't let a user of my java application resize a frame. For example I initially resize it to 300x200. But I don't want to let the user to use the maximize button for the frame to resize it.
IMPORTANT: PLEASE ANSWER:
(1)How can I detect when the user click on the maximize button?