JDK-4151234 : I need an Event Handler Funtion For Window Maximizing
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0,1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95,windows_nt
  • CPU: x86
  • Submitted: 1998-06-22
  • Updated: 1999-12-24
  • Resolved: 1999-12-24
Related Reports
Duplicate :  
Description

Name: moC74494			Date: 06/22/98


There are options in Window Listener like
WINDOW_CLOSING, etc., but there is no such option 
for a window being maximized. If at all i want to 
do some operations while a window is maximized iam
not able to do that. you can provide this feature
easily.
(Review ID: 34055)
======================================================================

Name: krT82822			Date: 10/20/99


I want following functionality to be added to AWT:

a) event notification about Frame maximizing/restoring.
b) ability to check state of window (normal/maximized/minimized) (getState())
c) programitical maximizing of the window (setState()?)

Currently there is only support for wind minimizing(iconifying).

I think that maximizing is pretty common concept in windowing
systems. It is supported by many window managers on UNIX,
by Windows and AFIAR by Mac. Absence of this feature
prevent us from saving and restoring application state when
Main window is maximized. With Maximized state sometimes special
logic is implemented by window managers. For example, you cannot
move maximized window on windows.

This feature can implemented with minimal changes in interfaces
because API is mostly here:

New constant should be added: Frame.MAXIMIZED
  To maximize use setState(Frame.MAXIMIZED) method.
  To notify clients about state changes use PropertyChanged
event listeners.
(Review ID: 96787)
======================================================================

Comments
EVALUATION Additional requests b) and c) were noted in description of 4173094. It did not make sense to have two separate rfes on this problem, so additional requests b) and c) were noted in description of 4173094. Closing as duplicate of 4173094.
11-06-2004