Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4151234
Votes 3
Synopsis I need an Event Handler Funtion For Window Maximizing
Category java:classes_awt
Reported Against 1.2beta3 , kestrel-beta
Release Fixed
State 11-Closed, duplicate of 4173094, request for enhancement
Priority: 4-Low
Related Bugs 4173094
Submit Date 22-JUN-1998
Description




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)
======================================================================




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)
======================================================================
Work Around
N/A
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.
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang